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

    try {
      producer.produceEvent();
      fail("Producers whose methods throw Errors must rethrow them");
    } catch (JudgmentError expected) {
      // Expected.
    }
  }
Checks that EventProducer's constructor disallows null targets.
otto/src/test/java/com/squareup/otto/EventProducerTest.java