assertTrue(empty2.equals(empty1));
}
public void testHashCode() throws InvalidNameException {
log.setMethod("testHashCode()");
CompoundName name;
name = new CompoundName("a/b/c", props);
assertTrue(name.hashCode() == new CompoundName("a/b/c", props)
.hashCode());
assertEquals(294, name.hashCode());
props.put("jndi.syntax.ignorecase", "true");
props.put("jndi.syntax.trimblanks", "false");
name = new CompoundName(" A / B / c ", props);
assertEquals(101466, name.hashCode());
props.put("jndi.syntax.ignorecase", "false");
props.put("jndi.syntax.trimblanks", "true");
name = new CompoundName(" A / B / c ", props);
assertEquals(230, name.hashCode());
props.put("jndi.syntax.ignorecase", "true");
props.put("jndi.syntax.trimblanks", "true");
name = new CompoundName(" A / B / c ", props);
assertEquals(294, name.hashCode());
}