}
}
@Test
public void test_Validate_LiteralRegex_NotOk() {
LiteralRegex r = pf.createLiteralRegex();
r.setValue("/[a-zA-Z0-9]*");
tester.validator().checkLiteralRegex(r);
tester.diagnose().assertError(IPPDiagnostics.ISSUE__NOT_REGEX);
r.setValue("/[a-zA-Z0-9]*\\/");
tester.validator().checkLiteralRegex(r);
tester.diagnose().assertError(IPPDiagnostics.ISSUE__NOT_REGEX);
r.setValue("/[a-zA-Z0-9]*/i");
tester.validator().checkLiteralRegex(r);
tester.diagnose().assertError(IPPDiagnostics.ISSUE__UNSUPPORTED_REGEX_FLAGS);
}