@Test
public void testWithStringTypeState() throws IOException {

    try (InputStream is = provider.getIcon("x", "classic", "y z", Format.PNG)) {
        assertThat(new String(is.readAllBytes(), StandardCharsets.UTF_8), is("x-y z.png"));
    }
}