assertSameContents(child2, found.get(0), _skipProps);
}
@Test
public void testFindByPathUsingChildNamePath() throws Exception {
HarvesterSetting parent = _repo.save(newSetting());
HarvesterSetting child2 = _repo.save(newSetting().setParent(parent).setName("2"));
HarvesterSetting child3 = _repo.save(newSetting().setParent(parent).setName("3"));
HarvesterSetting child4 = _repo.save(newSetting().setParent(child3).setName("4"));
String path = SEPARATOR + child3.getName() + SEPARATOR + child4.getName();
List<HarvesterSetting> found = _repo.findAllByPath(path);
assertEquals(1, found.size());
assertSameContents(child4, found.get(0), _skipProps);
String path2 = SEPARATOR + child2.getName() + SEPARATOR + child4.getName();
List<HarvesterSetting> found2 = _repo.findAllByPath(path2);
assertEquals(0, found2.size());
}