### Question:
Production { @Override public String toString() { return getHead() + " ::= " + getHandle(); } Production(Symbol head, int tableIndex); Symbol getHead(); SymbolList getHandle(); int getTableIndex(); void setHead(Symbol head); void setHandle(SymbolList handle); void setTableIndex(int tableIndex); boolean containsOneNonTerminal(); @Override String toString();  }### Answer:
@Test public void testToString() { Symbol symbol = new Symbol("Symbol1", SymbolType.NON_TERMINAL, 2); SymbolList list = new SymbolList(); Symbol symbol2 = new Symbol("Symbol2", SymbolType.NON_TERMINAL, 3); Symbol symbol3 = new Symbol("Symbol3", SymbolType.CONTENT, 4); list.add(symbol2); list.add(symbol3); Production production = new Production(symbol, 7); production.setHandle(list); assertEquals("wrong text", "<Symbol1> ::= <Symbol2> 'Symbol3'", production.toString()); }