@Test
public void getResourcesByExtensionTest() {

    Stream<String> txtResources = getResourcesByExtension("txt");
    List<String> resources = txtResources.collect(Collectors.toList());
    assertEquals(1, resources.size());
    assertTrue(resources.stream().anyMatch(elem -> elem.endsWith("testFile.txt")));
}