@Test
    void test() {
        RootConfig rootConfig = new RootConfig();
        PropertyPathDecorator.decoratePaths(rootConfig, PropertyPath.fromParts("root"));

        Assertions.assertThat(rootConfig.getBasePathStr())
                .isEqualTo("root");
        Assertions.assertThat(rootConfig.getLevel())
                .isEqualTo("root");
        Assertions.assertThat(rootConfig.getFullPathStr("level"))
                .isEqualTo("root.level");

        Assertions.assertThat(rootConfig.getChild().getBasePathStr())
                .isEqualTo("root.child");
        Assertions.assertThat(rootConfig.getChild().getLevel())
                .isEqualTo("child");
        Assertions.assertThat(rootConfig.getChild().getFullPathStr("level"))
                .isEqualTo("root.child.level");

        Assertions.assertThat(rootConfig.getChild().getGrandchild().getBasePathStr())
                .isEqualTo("root.child.grandchild");
        Assertions.assertThat(rootConfig.getChild().getGrandchild().getLevel())
                .isEqualTo("grandchild");
        Assertions.assertThat(rootConfig.getChild().getGrandchild().getFullPathStr("level"))
                .isEqualTo("root.child.grandchild.level");
    }
Decorate a tree of config objects with path information and make sure it is
all correct
stroom-util/src/test/java/stroom/util/config/TestPropertyPathDecorator.java