@Test
@ExtendWith(TempDirectory.class)
public void testParseHPO(@TempDirectory.TempDir Path tempDir) throws Exception {

    Resource testResource = new Resource("MP");
    testResource.setExtractedFileName("mp.obo");
    testResource.setParsedFileName("mp.pg");
    Map<String, String> mpId2termMap = new HashMap<>();
    MPOntologyFileParser instance = new MPOntologyFileParser(mpId2termMap);
    instance.parseResource(testResource, Paths.get("src/test/resources/data"), tempDir);
    assertFalse(mpId2termMap.isEmpty());
    Path mpPath = tempDir.resolve("mp.pg");
    assertTrue(mpPath.toFile().exists());
    List<String> lines = Files.readAllLines(mpPath);
    assertFalse(lines.isEmpty());
}