    @Test
    public void testRegistryNamingExtended() throws Exception {

        assertEquals("docker.jolokia.org/org/jolokia/jolokia_demo:0.18",
                new ImageName("org/jolokia/jolokia_demo:0.18").getFullName("docker.jolokia.org"));
        assertEquals("docker.jolokia.org/org/jolokia/jolokia_demo:latest",
                new ImageName("org/jolokia/jolokia_demo").getFullName("docker.jolokia.org"));
        assertEquals("org/jolokia/jolokia_demo:latest",
                new ImageName("org/jolokia/jolokia_demo").getFullName(null));
        assertEquals("docker.jolokia.org/org/jolokia/jolokia_demo:latest",
                new ImageName("docker.jolokia.org/org/jolokia/jolokia_demo").getFullName("another.registry.org"));
        assertEquals("docker.jolokia.org/org/jolokia/jolokia_demo:latest",
                new ImageName("docker.jolokia.org/org/jolokia/jolokia_demo").getFullName(null));
    }