// test rebinding when it doesn't already exist
binder.rebind();
assertEquals("Test2", ctx.lookup("some/entry"));
bindings = ctx.listBindings("some");
assertTrue(bindings.hasMore());
assertEquals("Test2", bindings.next().getObject());
assertFalse(bindings.hasMore());
} finally {
// clean up in case any JNDI bindings were left around