@Test
    public void testGetProductionRule() {
        assertNull(parser.getProductionRule("A"));
        Rule rule = new Rule("A", "a");
        parser.productionRules.add(rule);
        assertSame(rule, parser.getProductionRule("A"));
    }