RawField rawField = RawFieldParser.DEFAULT.parseField(raw);
return MimeVersionFieldLenientImpl.PARSER.parse(rawField, null);
}
static void check(String input, int expectedMajorVersion, int expectedMinorVersion) throws Exception {
MimeVersionField f = parse("MIME-Version: " + input);
assertEquals("Major version number", expectedMajorVersion, f.getMajorVersion());
assertEquals("Minor version number", expectedMinorVersion, f.getMinorVersion());
}