/** * @param berValue to encode. * @param expected persistent search request control to test. * * @throws Exception On test failure. */ @Test(groups = {"control"}, dataProvider = "request") public void encode(final byte[] berValue, final PersistentSearchRequestControl expected) throws Exception { Assert.assertEquals(expected.encode(), berValue); } }