SortControlDirContextProcessor extends AbstractFallbackRequestAndResponseControlDirContextProcessor { public Control createRequestControl() { return super.createRequestControl(new Class<?>[] { String[].class, boolean.class }, new Object[] { new String[] { sortKey }, critical}); } SortControlDirContextProcessor(String sortKey); boolean isSorted(); int getResultCode(); String getSortKey(); Control createRequestControl();  }
@Test public void testCreateRequestControl() throws Exception { SortControl result = (SortControl) tested.createRequestControl(); assertThat(result).isNotNull(); assertThat(result.getID()).isEqualTo("1.2.840.113556.1.4.473"); assertThat(result.getEncodedValue().length).isEqualTo(9); }