### Question:
DelayedError { public void cancel() { checkState(!reported, "This error has already been reported"); error = null; } private  DelayedError(Throwable error); static DelayedError create(Binder binder, String message, Object... args); static DelayedError create(Binder binder, Throwable t); static DelayedError create(Binder binder, Message message); void cancel();  }### Answer:
@Test public void testCancel() { Guice.createInjector(new AbstractModule() { @Override protected void configure() { DelayedError error = DelayedError.create(binder(), "Message"); error.cancel(); } }); }