public static java.util.regex.Pattern compilePattern(String expression) {
        return compilePattern(expression, 0);
    }
@Test
    void testCompilePatternInvalid() {
        assertThrows(PatternSyntaxException.class, () -> JMeterUtils.compilePattern("[missing closing bracket"));
    }