### Question:
FileEnvironmentRepository implements EnvironmentRepository { @Override public List<Environment> environments() { return forEach(environmentFiles(), parse()); } FileEnvironmentRepository(File rootDir, FsReader fsReader,
                                     ComponentFactory componentFactory, PropertiesFactory propertiesFactory); @Override List<Environment> environments(); @Override Set<String> environmentNames(); @Override Environment getByName(String name); @Override Environment getOrCreateByName(String name); static final String ENV_DIR; }### Answer:
@Test void parseEnvFiles() { List<Environment> environments = repo.environments(); assertEquals(5, environments.size()); testDev(filter(environments, "dev")); testTest(filter(environments, "test")); testStaging(filter(environments, "staging")); testProd(filter(environments, "prod")); testAlias(filter(environments, "alias")); }