@Test public void gettingIntermediateShouldReturnMap() { final Map intermediate = StructHelper.get(StructHelperTest.map, "patch.value.typed_config.value.config", Map.class); assertEquals("stats_outbound", intermediate.get("root_id")); }
public static <T> T get(Map<String, Object> struct, String dotSeparatedPath, Class<T> expectedType) { final String[] parts = dotSeparatedPath.split("\\."); return get(struct, parts, expectedType, new LinkedList<>(), dotSeparatedPath); }
StructHelper { public static <T> T get(Map<String, Object> struct, String dotSeparatedPath, Class<T> expectedType) { final String[] parts = dotSeparatedPath.split("\\."); return get(struct, parts, expectedType, new LinkedList<>(), dotSeparatedPath); } }
StructHelper { public static <T> T get(Map<String, Object> struct, String dotSeparatedPath, Class<T> expectedType) { final String[] parts = dotSeparatedPath.split("\\."); return get(struct, parts, expectedType, new LinkedList<>(), dotSeparatedPath); }  }
StructHelper { public static <T> T get(Map<String, Object> struct, String dotSeparatedPath, Class<T> expectedType) { final String[] parts = dotSeparatedPath.split("\\."); return get(struct, parts, expectedType, new LinkedList<>(), dotSeparatedPath); }  static T get(Map<String, Object> struct, String dotSeparatedPath, Class<T> expectedType); }
StructHelper { public static <T> T get(Map<String, Object> struct, String dotSeparatedPath, Class<T> expectedType) { final String[] parts = dotSeparatedPath.split("\\."); return get(struct, parts, expectedType, new LinkedList<>(), dotSeparatedPath); }  static T get(Map<String, Object> struct, String dotSeparatedPath, Class<T> expectedType);  }