@Test
public void testPostProcess_InvalidResponseControl() throws Exception {

    int resultSize = 50;
    byte pageSize = 8;
    byte[] value = new byte[1];
    value[0] = pageSize;
    byte[] cookie = encodeDirSyncValue(resultSize, value);
    // Using another response control to verify that it is ignored
    DirSyncResponseControl control = new DirSyncResponseControl("dummy",
            true, cookie);
    when(ldapContextMock.getResponseControls()).thenReturn(new Control[] { control });
    tested.postProcess(ldapContextMock);
    assertThat(tested.isSorted()).isEqualTo(false);
}