@Test
public void internalGetResourcesTest() {

    List<String> classPathElements = Arrays.asList(getClassPathElements());
    Optional<String> testFolder = classPathElements.stream().filter(elem -> elem.contains("test-classes")).findFirst();
    assertTrue(testFolder.isPresent());
    File dir = new File(testFolder.get());
    List<String> filesFound = internalGetResources(testFolder.get(), Pattern.compile(".*\\.txt$")).collect(Collectors.toList());
    assertEquals(1, filesFound.size());
    assertEquals(0, internalGetResources(filesFound.get(0), Pattern.compile(".*\\.txt$")).count());
}