}
private void checkRule(Grammar g, String rule, String expecting)
{
g.buildNFA();
State startState = g.getRuleStartState(rule);
FASerializer serializer = new FASerializer(g);
String result = serializer.serialize(startState);
//System.out.print(result);
assertEquals(expecting, result);