@Test
    void testBasics() {
        QueryProfile profile = new QueryProfile("test");
        profile.set("a", "a-value", null);
        profile.set("b.c", "b.c-value", null);
        profile.set("d.e.f", "d.e.f-value", null);

        CompiledQueryProfile cprofile = profile.compile(null);

        assertEquals("a-value", cprofile.get("a"));
        assertEquals("b.c-value", cprofile.get("b.c"));
        assertEquals("d.e.f-value", cprofile.get("d.e.f"));

        assertNull(cprofile.get("nonexistent"));
        assertNull(cprofile.get("nested.nonexistent"));

        assertEquals(profile.lookup("b", null).getClass(), QueryProfile.class);
        assertEquals(profile.lookup("b", null).getClass(), QueryProfile.class);
    }
Tests untyped query profiles

@author bratseth
container-search/src/test/java/com/yahoo/search/query/profile/test/QueryProfileTestCase.java