public static Properties getProperties(File file) throws AnalysisException {
        try (BufferedReader utf8Reader = Files.newBufferedReader(file.toPath(), StandardCharsets.UTF_8)) {
            return getProperties(utf8Reader);
        } catch (IOException | IllegalArgumentException e) {
            throw new AnalysisException("Error parsing PyPA core-metadata file", e);
        }
    }
@Test
    public void getProperties_should_support_newer_minors() throws IOException {
        String payload = "Metadata-Version: 2\r\n"
                         + " .5\r\n";
        Properties props = PyPACoreMetadataParser.getProperties(new BufferedReader(new StringReader(payload)));
        Assert.assertEquals("2.5", props.getProperty("Metadata-Version"));
    }