@Test
public void should_detect_CSV_format_and_encoding() throws IOException {

    try (InputStream inputStream = this.getClass().getResourceAsStream("standard.csv")) {
        Format actual = csvDetector.detect(inputStream);
        Assert.assertNotNull(actual);
        assertTrue(actual.getFormatFamily() instanceof CSVFormatFamily);
        assertEquals("ISO-8859-1", actual.getEncoding());
    }
}