@Test
public void getBasenameToPathMapThrowsIllegalArgumentException() {

    Function<String, List<String>> generator = mockGenerator();
    Mockito.when(generator.apply("images/material_design_icons/device/"))
            .thenReturn(Collections.singletonList("ic_search_black_24dp.xml"));
    try {
        MaterialDesignIcons.getBasenameToPathMap(generator);
        fail();
    } catch (IllegalArgumentException ignored) {
    }
}