/**
* The test checks the event is fired for object created with the create()
*/
public void testCreateWithMethodCallWhichIsSetter() {
InvocationObject invocationObject = new InvocationObject();
SampleEvent event = new SampleEvent("bean");
SampleListener listener = EventHandler.create(SampleListener.class,
invocationObject, "doSomething", "i", null);
listener.fireSampleEvent(event);
assertEquals("doSomething", getMethodName());
assertEquals(event.getI(), invocationObject.getIntValue());
}