@Test
    public void testParseInvalidPredicateBrackets() throws Exception {
        Parser parser = new Parser();
        try {
            parser.parsePredicate("father*of(P, C(");
            fail("The brackets of this predicate do not match.");
        } catch (ParseException ex) {
            // Expected exception
        }
    }