### Question:
VariableAqlPath { public String getInfix(){ List<String> segments = LocatableHelper.dividePathIntoSegments(path); return String.join("/", segments.subList(0, segments.size() - 1)); } VariableAqlPath(String path); String getSuffix(); String getInfix(); boolean isPartialAqlDataValuePath();  }### Answer:
@Test public void getInfix() { String aPath = "data[at0001]/events[at0002]/data[at0003]/items[at0007]/value"; assertEquals("data[at0001]/events[at0002]/data[at0003]/items[at0007]", new VariableAqlPath(aPath).getInfix()); }