public static boolean isArgumentMatched(Argument arg, Argument patternArg) {
        if (USE_JAVA_REGEX) {
            return isEqualOrMatchesWithJavaRegex(arg.getName(), patternArg.getName())
                    && isEqualOrMatchesWithJavaRegex(arg.getValue(), patternArg.getValue());
        }
        return isArgumentMatchedWithOroRegex(arg, patternArg);
    }
@Test
    public void testIsArgumentMatched() throws Exception {
        Argument arg = new Argument();
        Argument argp = new Argument();
        assertTrue(HtmlParsingUtils.isArgumentMatched(arg, argp));

        arg = new Argument("test", "abcd");
        argp = new Argument("test", "a.*d");
        assertTrue(HtmlParsingUtils.isArgumentMatched(arg, argp));

        arg = new Argument("test", "abcd");
        argp = new Argument("test", "a.*e");
        assertFalse(HtmlParsingUtils.isArgumentMatched(arg, argp));
    }