Method addMethod = sourceClass.getMethod(
"addMockPropertyChangeListener", new Class[] { listenerType });
Method removeMethod = sourceClass.getMethod(
"removeMockPropertyChangeListener",
new Class[] { listenerType });
EventSetDescriptor esd = new EventSetDescriptor(eventSetName,
listenerType, listenerMethods, addMethod, removeMethod);
assertEquals(addMethod, esd.getAddListenerMethod());
assertEquals(removeMethod, esd.getRemoveListenerMethod());
assertNull(esd.getGetListenerMethod());
// RI reports true in the following assertion, so it returns exactly
// the same array as it was specified in the EventSetDescriptor
// construtor.
assertEquals(listenerMethods, esd.getListenerMethods());
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());
}