### Question:
DockerComposeReader { public static DockerCompose parse(String dockerFileLocation) throws Exception { InputStream inputStream = null; log.debug("Loading app net configuration from docker-compose.yml"); File configFile = new File(dockerFileLocation); if (configFile.exists()) { log.debug("Found app net configuration in " + dockerFileLocation); inputStream = new FileInputStream(configFile.getCanonicalPath()); } if (inputStream != null) { Representer representer = new Representer(); representer.getPropertyUtils().setSkipMissingProperties(true); Yaml yaml = new Yaml(new Constructor(DockerCompose.class),representer); return yaml.load(inputStream); } else { throw new Exception("Docker compose file not found in " + dockerFileLocation); } }  static DockerCompose parse(String dockerFileLocation); static DockerCompose parse();  }### Answer:
@Test public void testDockerComposeReader() throws Exception { DockerCompose dockerCompose = DockerComposeReader.parse("./src/test/resources/docker-compose.yml"); assertEquals("3.3", dockerCompose.getVersion()); assertEquals("Alice", dockerCompose.getNameForId("Alice")); assertEquals("not found", dockerCompose.getNameForId("not found")); assertEquals(8081, dockerCompose.getPortForId("Alice")); assertEquals(0, dockerCompose.getPortForId("not found")); assertEquals("302a300506032b65700321000c5fd53530c52e9950e98932e2bdc35c6f9cad0069198da76a611e28d4fe434b", dockerCompose.getPublicKeyForId("Alice")); assertEquals("not found", dockerCompose.getPublicKeyForId("not found")); assertEquals(4, dockerCompose.getServices().size()); assertThrows(Exception.class, () -> {DockerComposeReader.parse("notAnExistingFile");}); }