MapEvent event = new DataNodeEvent(new Object(), new DataNodeDescriptor("someName"));
assertEquals("someName", event.getNewName());
}
public void testNoNameChange() throws Exception {
MapEvent event = new DataNodeEvent(new Object(), new DataNodeDescriptor("someName"));
assertFalse(event.isNameChange());
event.setOldName("someOldName");
assertTrue(event.isNameChange());
}