@Test public void usableIfSpectatorModuleIsInstalled() { Registry r = Guice .createInjector(new SpectatorModule(), new TestModule()) .getInstance(Registry.class); Assertions.assertTrue(r instanceof DefaultRegistry); // SpectatorModule installs ServoRegistry // Sanity checking global behavior, SpectatorModule will add it to the global // registry which is not normally done for TestModule because it is all static. Assertions.assertSame(Spectator.globalRegistry().underlying(DefaultRegistry.class), r); } }