assertEquals(obj,
new dir2URLContextFactory.MockObject(addr.getContent(),
new CompositeName("compositename"), null, env, a));
// test Referenceable
MockReferenceable mr = new MockReferenceable(r);
obj = (dir2URLContextFactory.MockObject) DirectoryManager
.getObjectInstance(mr.getReference(), new CompositeName(
"compositename"), null, env, a);
assertEquals(obj,
new dir2URLContextFactory.MockObject(addr.getContent(),
new CompositeName("compositename"), null, env, a));