@Test
    void testCloning() {
        QueryProfile classProfile = new QueryProfile("test");
        classProfile.set("a", "aValue", null);
        classProfile.set("b", 3, null);

        Properties properties = new QueryProfileProperties(classProfile.compile(null));

        Properties propertiesClone = properties.clone();
        assertEquals("aValue", propertiesClone.get("a"));
        assertEquals(3, propertiesClone.get("b"));
        properties.set("a", "aNewValue");
        assertEquals("aNewValue", properties.get("a"));
        assertEquals("aValue", propertiesClone.get("a"));
    }
Tests cloning, with wrappers used in production in place
container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileTestCase.java