@Override
    public boolean match(final String rule) {
        return rule.matches("^double\\|\\d+(?:\\.\\d+)?-\\d+(?:\\.\\d+)?.*");
    }
@Test
    public void match() {
        assertTrue(generator.match("double|10-15"));
        assertTrue(generator.match("double|10.1-15"));
        assertTrue(generator.match("double|10.1-15.2"));
        assertTrue(generator.match("double|10.1-15.2|"));
        assertTrue(generator.match("double|10.1-15.2|%.2f"));
        assertFalse(generator.match("double"));
        assertFalse(generator.match("double|10.2.1-"));
    }