@Test
public void getClassPathElementsTest() {

    List<String> classPathElements = Arrays.asList(getClassPathElements());
    List<String> notJar = classPathElements.stream().filter(elem -> !elem.contains(".jar")).collect(Collectors.toList());
    assertTrue(notJar.stream().anyMatch(elem -> elem.contains("test-classes")));
}