@Override
    public boolean match(final String rule) {
        return rule.matches("^zh\\|\\d+-\\d+$");
    }
@Test
    public void match() {
        assertTrue(generator.match("zh|10-15"));
        assertFalse(generator.match("zh"));
        assertFalse(generator.match("zh|"));
        assertFalse(generator.match("zh|10.1-15"));
    }