@Test
public void test() throws IOException {

    StringToIntMapper<TestSubset> mapper = new StringToIntMapper<>(TestSubset.class);
    testAddMapping(mapper);
    mapper.reset(TestSubset.TYPE);
    testAddMapping(mapper);
    try {
        mapper.reset(null);
        fail();
    } catch (IllegalArgumentException ignored) {
    }
}