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