@Test
    void testPrefix() {
        CompoundName abcc = CompoundName.from("a.b.cc");
        assertTrue(abcc.hasPrefix(CompoundName.empty));
        assertTrue(abcc.hasPrefix(CompoundName.from("a")));
        assertTrue(abcc.hasPrefix(CompoundName.from("a.b")));
        assertTrue(abcc.hasPrefix(CompoundName.from("a.b.cc")));

        assertFalse(abcc.hasPrefix(CompoundName.from("a.b.c")));
        assertFalse(abcc.hasPrefix(CompoundName.from("a.b.c.d")));
        assertFalse(abcc.hasPrefix(CompoundName.from("a.b.d")));
    }
Module local test of the basic property name building block.

@author Steinar Knutsen
container-core/src/test/java/com/yahoo/processing/request/CompoundNameTestCase.java