public Model parse(File file) throws PomParseException {
        try (FileInputStream fis = new FileInputStream(file)) {
            return parse(fis);
        } catch (IOException ex) {
            if (ex instanceof PomParseException) {
                throw (PomParseException) ex;
            }
            LOGGER.debug("", ex);
            throw new PomParseException(String.format("Unable to parse pom '%s'", file), ex);
        }
    }
@Test
    public void testParse_InputStream() throws Exception {
        InputStream inputStream = BaseTest.getResourceAsStream(this, "pom/plexus-utils-3.0.24.pom");
        PomParser instance = new PomParser();
        String expectedArtifactId = "plexus-utils";
        Model result = instance.parse(inputStream);
        assertEquals("Invalid artifactId extracted", expectedArtifactId, result.getArtifactId());
    }