SymbolSetQueryAtom extends QueryAtom implements IQueryAtom { public void removeSymbol(String symbol) { symbols.remove(symbol); } SymbolSetQueryAtom(IChemObjectBuilder builder); void setOperator(String str); @Override boolean matches(IAtom atom); void addSymbol(String symbol); void removeSymbol(String symbol); boolean hasSymbol(String symbol); Set<String> getSymbolSet(); @Override String toString(); @Override IAtom clone();  }
@Test public void testRemoveSymbol() { symbolSet.removeSymbol("Fe"); Assert.assertEquals(1, symbolSet.getSymbolSet().size()); Assert.assertFalse(symbolSet.hasSymbol("Fe")); Assert.assertTrue(symbolSet.hasSymbol("C")); symbolSet.addSymbol("Fe"); }