testEncodingWithMetricsLine("AdobeStandardEncoding", GOOD_LINE);
}
private void testEncodingWithMetricsLine(String encoding, String line) throws IOException {
Map<String, ValueHandler> valueParsers = mock(HashMap.class);
ValueHandler cHandler = mock(ValueHandler.class);
ValueHandler wxHandler = mock(ValueHandler.class);
ValueHandler nHandler = mock(ValueHandler.class);
ValueHandler bHandler = mock(ValueHandler.class);
when(valueParsers.get("C")).thenReturn(cHandler);
when(valueParsers.get("WX")).thenReturn(wxHandler);
when(valueParsers.get("N")).thenReturn(nHandler);
when(valueParsers.get("B")).thenReturn(bHandler);