@Test
public void testDefaultConfig()
{
long testStartTime = System.currentTimeMillis();
ConfigurationFactory configFactory = new ConfigurationFactory(ImmutableMap.<String, String>of("node.environment", "environment"));
Injector injector = Guice.createInjector(new NodeModule(), new ConfigurationModule(configFactory), new ApplicationNameModule("test-application"));
NodeInfo nodeInfo = injector.getInstance(NodeInfo.class);
Assert.assertNotNull(nodeInfo);
Assert.assertEquals(nodeInfo.getApplication(), "test-application");
Assert.assertEquals(nodeInfo.getEnvironment(), "environment");