@Test
void shouldNotContainDirectories() {

    assertThat(
            CollectedResource.fromDirectory(Paths.get("src/main/resources"))
                    .stream()
                    .map(CollectedResource::resource)
                    .map(Resource::getSourcePath)
                    .map(File::new)
                    .filter(File::isDirectory)
                    .count()).isZero();
}