server
.setResponseSeq(new LdapMessage[] { new LdapMessage(
LdapASN1Constant.OP_EXTENDED_RESPONSE,
encodableResponse, null) });
ExtendedResponse response = context
.extendedOperation(new MockExtendedRequest());
assertTrue(response instanceof MockExtendedResponse);
assertEquals("It's my id", response.getID());
assertEquals(4, response.getEncodedValue().length);
assertEquals(0, response.getEncodedValue()[0]);