### Question:
FAState { public List<FAEdge> getEdges() { if (edges == null) { edges = new ArrayList<FAEdge>(); } return edges; } FAState();  FAState(Symbol symbol); Symbol getAccept(); List<FAEdge> getEdges(); public Symbol accept; }### Answer:
@Test public void testAddEdges() { FAState state = new FAState(); assertEquals("edges size", 0, state.getEdges().size()); state.getEdges().add(new FAEdge(new CharacterSet(), 4)); state.getEdges().add(new FAEdge(new CharacterSet(), 5)); assertEquals("edges size", 2, state.getEdges().size()); }