@Test
public void testGroupMultiAgentAndRule() throws IOException {

    InputStream stream = this.getClass().getClassLoader().getResourceAsStream("group-multi-agent-and-rule.json");
    String content = TestUtils.readFile(stream);
    assertFalse(ruleMatcher.canCrawl("googlebot", "/users/hello", content));
    assertFalse(ruleMatcher.canCrawl("googlebot", "/users/", content));
    assertFalse(ruleMatcher.canCrawl("googlebot", "/links/source/test", content));
    assertFalse(ruleMatcher.canCrawl("googlebot", "/links/source/", content));
    assertTrue(ruleMatcher.canCrawl("googlebot", "/test", content));
    assertTrue(ruleMatcher.canCrawl("googlebot", "/users", content));
    assertTrue(ruleMatcher.canCrawl("*", "/links", content));
    assertTrue(ruleMatcher.canCrawl("*", "/links/sourc", content));
    assertTrue(ruleMatcher.canCrawl("*", "/hello/links/source", content));
    assertTrue(ruleMatcher.canCrawl("hello007", "/hello/links/source", content));
    assertTrue(ruleMatcher.canCrawl("hello007", "/users/javi", content));
}