    @Test(dataProvider = "patternProvider")
    public void testName(String pattern, int[] prefixes) throws Exception {

        final PrefixFunction function = getFactory().getInstance(pattern);
        assertThat(function, is(notNullValue()));
        for (int i = 0; i < prefixes.length; i++) {
            int prefix = prefixes[i];
            assertThat(function.prefix(i), is(prefix));
        }
    }