public Model parseWithoutDocTypeCleanup(File file) throws PomParseException {
        try (FileInputStream fis = new FileInputStream(file)) {
            return parseWithoutDocTypeCleanup(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 testParseWithoutDocTypeCleanup_InputStream() throws Exception {
        InputStream inputStream = BaseTest.getResourceAsStream(this, "pom/mailapi-1.4.3.pom");
        PomParser instance = new PomParser();
        String expVersion = "1.4.3";
        Model result = instance.parseWithoutDocTypeCleanup(inputStream);
        assertEquals("Invalid version extracted", expVersion, result.getParentVersion());
    }