// Check the click handler
JParameter[] clickParams = clickMethod.getParameters();
assertEquals(1, clickParams.length);
assertEquals(clickEventType, clickParams[0].getType());
assertTrue(clickMethod.isAnnotationPresent(UiHandler.class));
UiHandler clickAnnotation = clickMethod.getAnnotation(UiHandler.class);
String[] clickFields = clickAnnotation.value();
assertEquals(1, clickFields.length);
assertEquals("myField", clickFields[0]);
// Check the mouse over handler
JParameter[] mouseOverParams = mouseOverMethod.getParameters();
assertEquals(1, mouseOverParams.length);
assertEquals(mouseOverEventType, mouseOverParams[0].getType());
assertTrue(mouseOverMethod.isAnnotationPresent(UiHandler.class));
UiHandler mouseOverAnnotation = mouseOverMethod.getAnnotation(UiHandler.class);
String[] mouseOverFields = mouseOverAnnotation.value();
assertEquals(2, mouseOverFields.length);
assertEquals("myField", mouseOverFields[0]);
assertEquals("myOtherField", mouseOverFields[1]);
}