@Test
public void testMatches() {

    assertTrue("default matches all", Rules.DEFAULT_ALLOW.matches("/foo"));
    final Rule allowsDigits = new Rule(RuleType.ALLOW, Pattern.compile("[0-9]*"));
    assertTrue("allows digits matches digits", allowsDigits.matches("123"));
    assertFalse("allows digits doesn't match letters", allowsDigits.matches("abc"));
}