LookupIdentifier { public boolean isMapNested() { return secondaryMapName != null; } LookupIdentifier(final String map, final String key, final long eventTime); static LookupIdentifier of(final String map, final String key, final long eventTime); static LookupIdentifier of(final String map, final String key, final String eventTimeStr); void append(final StringBuilder sb); boolean isMapNested(); String getMap(); String getKey(); long getEventTime(); String getPrimaryMapName(); String getSecondaryMapName(); LookupIdentifier getNestedLookupIdentifier(final String newKey); LookupIdentifier cloneWithNewKey(String newKey); @Override String toString(); @Override boolean equals(final Object o); @Override int hashCode();  }
@Test void isMapNested_true() { String map = "map1" + LookupIdentifier.NEST_SEPARATOR + "map2" + LookupIdentifier.NEST_SEPARATOR + "map3"; LookupIdentifier identifier = new LookupIdentifier(map, "key1", 12345); assertThat(identifier.isMapNested()).isTrue(); }
@Test void isMapNested_false() { LookupIdentifier identifier = new LookupIdentifier("map1", "key1", 12345); assertThat(identifier.isMapNested()).isFalse(); }