"org.apache.harmony.jndi.tests.javax.naming.spi.mock.ldap.MockContextFactory");
Control[] cs = {
new MockControl("c1", false, new byte[] { 1, 2, 3, 4 }),
new MockControl("c2", true, new byte[] { 'a', 'b', 'c', 'd' }), };
MyInitialLdapContext x = new MyInitialLdapContext(env, cs);
MockInitialLdapContext defaultCtx = (MockInitialLdapContext) x
.getDefaultContext();
Object objCs = defaultCtx.getProps().get(
"java.naming.ldap.control.connect");
Control[] cs2 = (Control[]) objCs;
for (int i = 0; i < cs.length; i++) {
assertEquals(cs2[i], cs[i]);
}