@Test
    public void testParseRule() {
        List<Rule> rules = GrammarParser.parseProductionRule("productionRules x -> y");
        assertEquals(1, rules.size());
        assertEquals("x", rules.get(0).getSearch());
        assertEquals("y", rules.get(0).getReplace());

        rules = GrammarParser.parseProductionRule("productionRules x -> y a->b");
        assertEquals(2, rules.size());
        assertEquals("x", rules.get(0).getSearch());
        assertEquals("y", rules.get(0).getReplace());
        assertEquals("a", rules.get(1).getSearch());
        assertEquals("b", rules.get(1).getReplace());
    }