@Test
public void testPathParsing() {

    List<PathSearch.Chunk> list = PathSearch.split("//hello/world//foo/bar");
    logger.debug("list: {}", list);
    PathSearch.Chunk first = list.get(0);
    assertTrue(first.anyDepth);
    assertEquals("hello", first.controlType);
    PathSearch.Chunk second = list.get(1);
    assertFalse(second.anyDepth);
    assertEquals("world", second.controlType);
    PathSearch.Chunk third = list.get(2);
    assertTrue(third.anyDepth);
    assertEquals("foo", third.controlType);
}