@Test
void getNestedLookupIdentifier() {

    String map = "map1" + LookupIdentifier.NEST_SEPARATOR +
            "map2" + LookupIdentifier.NEST_SEPARATOR +
            "map3";
    LookupIdentifier identifier = new LookupIdentifier(map, "key1", 12345);
    LookupIdentifier nestedIdentifier = identifier.getNestedLookupIdentifier("key2");
    assertThat(nestedIdentifier.isMapNested()).isTrue();
    assertThat(nestedIdentifier.getPrimaryMapName()).isEqualTo("map2");
    assertThat(nestedIdentifier.getMap()).isEqualTo("map2" + LookupIdentifier.NEST_SEPARATOR + "map3");
    assertThat(nestedIdentifier.getKey()).isEqualTo("key2");
    LookupIdentifier secondNestedIdentifier = nestedIdentifier.getNestedLookupIdentifier("key3");
    assertThat(secondNestedIdentifier.isMapNested()).isFalse();
    assertThat(secondNestedIdentifier.getMap()).isEqualTo("map3");
}