@Test public void errorPassthrough() throws InvocationTargetException, NoSuchMethodException {
    Method method = getErrorThrowingMethod();
    EventHandler handler = new EventHandler(this, method);

    try {
      handler.handleEvent(new Object());
      fail("Handlers whose methods throw Errors must rethrow them");
    } catch (JudgmentError expected) {
      // Expected.
    }
  }
Checks that EventHandler's constructor disallows null targets.
otto/src/test/java/com/squareup/otto/EventHandlerTest.java