@Override
    public boolean match(final String rule) {
        return rule.matches("^" + getName() + "\\|.+");
    }
@Test
    public void testMatch() {
        assertTrue(generator.match("expression|23"));
        assertFalse(generator.match("expression"));
        assertFalse(generator.match("expression|"));
    }