StandaloneModule implements Module { @Override public void configure(@Nonnull final Binder binder) { assert binder != null; binder.bind(Server.class).asEagerSingleton(); }  @Override void configure(@Nonnull final Binder binder);  }
@SuppressWarnings("JUnitTestMethodWithNoAssertions") @Test public void testStandaloneModule() { LOG.info("testStandaloneModule"); MockitoAnnotations.initMocks(this); when(mockBinder.skipSources(Names.class)).thenReturn(mockBinder); when(mockBinder.bind(any(Key.class))).thenReturn(mockLinkedBindingBuilder); when(mockBinder.bind(any(Class.class))).thenReturn(mockAnnotatedBindingBuilder); final StandaloneModule standaloneModule = new StandaloneModule(); standaloneModule.configure(mockBinder); }