    @Test
    public void TestExtractNavigatorURL()

    {

        assertEquals("http://domain:3333", ClouderaAPIUtil.extractNavigatorURL("http://domain:3333/api/v1/"));
        assertEquals("https://domain:3333", ClouderaAPIUtil.extractNavigatorURL("https://domain:3333/api/v1/"));
        assertEquals("http://sd01.sd02.domain:3333", ClouderaAPIUtil.extractNavigatorURL("http://sd01.sd02.domain:3333/api/v1/"));
        assertEquals("https://sd01.sd02.domain:3333",
                ClouderaAPIUtil.extractNavigatorURL("https://sd01.sd02.domain:3333/api/v1/"));
        assertEquals("http://sd01.sd02.sd03.sd04.x.y.z.domain:3333",
                ClouderaAPIUtil.extractNavigatorURL("http://sd01.sd02.sd03.sd04.x.y.z.domain:3333/api/v1/"));
        assertEquals("http://sd01.sd02.domain:3333",
                ClouderaAPIUtil.extractNavigatorURL("http://sd01.sd02.domain:3333/api/v1/x/y/z/e/u/"));
        assertEquals("http://sd01.sd02.domain:3333",
                ClouderaAPIUtil.extractNavigatorURL("http://sd01.sd02.domain:3333/api/v1/x/y/z/:e/u/"));
        assertEquals("http://sd01.sd02.domain:12345678910",
                ClouderaAPIUtil.extractNavigatorURL("http://sd01.sd02.domain:12345678910/api/v1/"));
        assertEquals("http://sd01.sd02.domain:12345678910",
                ClouderaAPIUtil.extractNavigatorURL("http://sd01.sd02.domain:12345678910/api/v1/"));
        assertEquals("http://sd01/sd02/domain:3333", ClouderaAPIUtil.extractNavigatorURL("http://sd01/sd02/domain:3333/api/v1/"));
        assertEquals("httpXX://domain:3333/api/v1/", ClouderaAPIUtil.extractNavigatorURL("httpXX://domain:3333/api/v1/"));
    }