HandlerContainerImpl implements HandlerContainer { @Override public final boolean isBound() { return bound.value; } @Inject  HandlerContainerImpl();  HandlerContainerImpl(boolean autoBind); @Override void bind(); @Override final boolean isBound(); @Override void unbind();  }
@Test public void shouldBindDefaultHandlerContainerOnInjection( HandlerContainerImpl handlerContainer) { assertTrue(handlerContainer.isBound()); }
@Test public void shouldNotBindNonAutoboundHandlerContainerOnInjection( NonAutoboundHandlerContainer handlerContainer) { assertFalse(handlerContainer.isBound()); }