Symbol { public void clear() { this.symbolString = null; this.type = null; } Symbol();  Symbol(String newString, Enums.SymbolType newType);  Symbol(Symbol copy); void setType(Enums.SymbolType newType); Enums.SymbolType getType(); String getSymbolString(); void setSymbolString(String s); boolean equals(Symbol newSymbol); boolean equals(String newSymbol); void clear(); @Override String toString();  }
@Test public void testClear() { System.out.println("* SymbolTest: clear"); Symbol instance = new Symbol("test", Enums.SymbolType.TSymbol); instance.clear(); assertEquals(null, instance.getSymbolString()); assertEquals(null, instance.getType()); }