@Test
public void analyseSafePattern() {

    BugReporter reporter = mock(BugReporter.class);
    ReDosDetector detector = new ReDosDetector(reporter);
    detector.analyseRegexString("");
    detector.analyseRegexString("[a-zA-Z]+[0-9]*");
    detector.analyseRegexString("(id-[0-9]+)-([0-9A-F]*)");
    verify(reporter, never()).reportBug(bugDefinition().bugType("REDOS").build());
}