@Override
    public boolean match(final String rule) {
        return rule.matches("^array\\|.+\\|\\d+$");
    }
@Test
    public void testMatch() {
        assertTrue(arrayGenerator.match("array|111|2"));
        assertTrue(arrayGenerator.match("array|${int|10-20}|2"));
        assertFalse(arrayGenerator.match("array|10|a"));
        assertFalse(arrayGenerator.match("array|10|"));
    }