    @Test
    public void generate() throws GeneratorException, IOException {

        ApplicationPropertiesSourceGenerator generator = getGenerator();
        generator.generate();

        Path propsPath = Files.find(resourceFolder.getRoot().toPath(), Integer.MAX_VALUE,
                (filePath, fileAttr) -> fileAttr.isRegularFile())
                .filter(path -> path.toFile().getName().equals("application.properties"))
                .findFirst()
                .orElse(null);

        assertNotNull(propsPath);

        String propsAsString = FileUtils.readFileToString(propsPath.toFile());
        assertTrue(propsAsString.contains("server.port"));
        assertTrue(propsAsString.contains("spring-boot.run.workingDirectory"));
    }