@Test
void isAllowed()
{

    assertTrue(this.validator.isAllowed(Arrays.asList("namespace"), "namespace"));
    assertTrue(this.validator.isAllowed(Arrays.asList("{root}"), null));
    assertTrue(this.validator.isAllowed(Arrays.asList("{}"), null));
    assertTrue(this.validator.isAllowed(Arrays.asList("[.*]"), "namespace"));
    assertTrue(this.validator.isAllowed(Arrays.asList("[wiki:(?!xwiki$).*]"), "wiki:test"));
    assertFalse(this.validator.isAllowed(Arrays.asList("namespace"), "wrong"));
    assertFalse(this.validator.isAllowed(Arrays.asList("{root}"), "wrong"));
    assertFalse(this.validator.isAllowed(Arrays.asList("[\\d*]"), "namespace"));
    assertFalse(this.validator.isAllowed(Arrays.asList((String) null), "namespace"));
}