@Test
public void splitHostFQDN() throws Exception {

    String[] result = EnvironmentUtil.splitHostFQDN("joelauer-02");
    Assert.assertEquals("joelauer-02", result[0]);
    Assert.assertEquals(null, result[1]);
    result = EnvironmentUtil.splitHostFQDN("joelauer-02.");
    Assert.assertEquals("joelauer-02", result[0]);
    Assert.assertEquals(null, result[1]);
    result = EnvironmentUtil.splitHostFQDN("joelauer-02.c");
    Assert.assertEquals("joelauer-02", result[0]);
    Assert.assertEquals("c", result[1]);
    result = EnvironmentUtil.splitHostFQDN(null);
    Assert.assertEquals(null, result[0]);
    Assert.assertEquals(null, result[1]);
    result = EnvironmentUtil.splitHostFQDN("");
    Assert.assertEquals(null, result[0]);
    Assert.assertEquals(null, result[1]);
    result = EnvironmentUtil.splitHostFQDN(".");
    Assert.assertEquals("", result[0]);
    Assert.assertEquals(null, result[1]);
}