public FontMetrics parse() throws IOException
    {
        return parseFontMetric(false);
    }
@Test
    void testStartFontMetrics() throws IOException
    {
        try
        {
            new AFMParser(new ByteArrayInputStream("huhu".getBytes(StandardCharsets.US_ASCII)))
                    .parse();
            fail("The AFMParser should have thrown an IOException because of a missing "
                    + AFMParser.START_FONT_METRICS);
        }
        catch (IOException e)
        {
            // expected exception
        }
    }