@Test
public void bound_event_exceptionHandling_noUndeclaredThrowableOrInvocationTargetException() {

    Button button = (Button) inflater.inflate(getXml("single-button.xml"));
    ControllerWithExceptionInClickHandler controller = new ControllerWithExceptionInClickHandler();
    Binder binder = new Binder();
    binder.bind(button, controller);
    try {
        button.click();
    } catch (Exception ex) {
        Throwable current = ex;
        while (current != null) {
            assertThat(
                    current,
                    allOf(not(instanceOf(UndeclaredThrowableException.class)),
                            not(instanceOf(InvocationTargetException.class))));
            current = current.getCause();
        }
    }
}