@Test
public void testSameAllowAndDisallowRulePattern() throws IOException {

    InputStream stream = this.getClass().getClassLoader().getResourceAsStream("same-pattern-rules.json");
    String content = TestUtils.readFile(stream);
    assertTrue(ruleMatcher.canCrawl("googlebot", "/test/file.html", content));
    assertTrue(ruleMatcher.canCrawl("googlebot", "/test", content));
    assertTrue(ruleMatcher.canCrawl("googlebot", "/not-exists", content));
}