Method addMethod = sourceClass.getMethod(
"addMockPropertyChangeListener", listenerType);
Method removeMethod = sourceClass.getMethod(
"removeMockPropertyChangeListener", listenerType);
EventSetDescriptor esd = new EventSetDescriptor(eventSetName,
listenerType, listenerMethodDescriptors, addMethod,
removeMethod);
assertEquals(addMethod, esd.getAddListenerMethod());
assertEquals(removeMethod, esd.getRemoveListenerMethod());
assertNull(esd.getGetListenerMethod());
assertEquals(listenerMethods[0], esd.getListenerMethods()[0]);
assertEquals(listenerMethods[1], esd.getListenerMethods()[1]);
assertEquals(2, esd.getListenerMethodDescriptors().length);
assertEquals(listenerMethods[0], esd.getListenerMethodDescriptors()[0]
.getMethod());
assertEquals(listenerMethods[1], esd.getListenerMethodDescriptors()[1]
.getMethod());
assertEquals(listenerType, esd.getListenerType());
assertTrue(esd.isInDefaultEventSet());
assertFalse(esd.isUnicast());
}