@Test
public void testInitNode() {

  String node = SessionConfiguration.initNode();
  assertNotNull(node);
  System.setProperty(SessionConfiguration.NODE_ID, "test");
  node = SessionConfiguration.initNode();
  assertEquals("test", node);
  System.getProperties().remove(SessionConfiguration.NODE_ID);
  String os = System.getProperty("os.name");
  node = SessionConfiguration.initNode();
  if (os.startsWith("Windows")) {
    if (System.getenv("COMPUTERNAME") != null) {
      assertEquals(System.getenv("COMPUTERNAME"), node);
    }
  } else {
    if (System.getenv("HOSTNAME") != null) {
      assertEquals(System.getenv("HOSTNAME"), node);
    }
  }
}