@Test
    void testIllegalCompound() {
        assertEquals("'a.' is not a legal compound name. Names can not end with a dot.",
                     assertThrows(IllegalArgumentException.class,
                                  () -> CompoundName.from("a."))
                             .getMessage());
        assertEquals("'.b' is not a legal compound name. Consecutive, leading or trailing dots are not allowed.",
                     assertThrows(IllegalArgumentException.class,
                                  () -> CompoundName.from(".b"))
                             .getMessage());
        assertEquals("'a..b' is not a legal compound name. Consecutive, leading or trailing dots are not allowed.",
                     assertThrows(IllegalArgumentException.class,
                                  () -> CompoundName.from("a..b"))
                             .getMessage());
    }
Module local test of the basic property name building block.

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