Hashtable<String, String> temp = new Hashtable<String, String>();
temp.put("mockkey", "mockobj");
MockContext c = new MockContext(temp);
Name n = new CompositeName("compositename");
MockDirContext3 ctx = (MockDirContext3) DirectoryManager
.getObjectInstance(r, n, c, env, a);
boolean equals = ctx.parameterEquals(validFactoryAddr.getContent(), n,
c, env, null); // it's NOT a!!
assertTrue(equals);
// test Referenceable
MockReferenceable mr = new MockReferenceable(r);
ctx = (MockDirContext3) DirectoryManager.getObjectInstance(mr, n, c,
env, a);
assertTrue(ctx.parameterEquals(validFactoryAddr.getContent(), n, c,
env, null)); // it's NOT a!!
}