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));
NodeInfo nodeInfo = injector.getInstance(NodeInfo.class);
Assert.assertNotNull(nodeInfo);
Assert.assertEquals(nodeInfo.getEnvironment(), "environment");
Assert.assertEquals(nodeInfo.getPool(), "general");
Assert.assertNotNull(nodeInfo.getNodeId());