PharmacophoreQueryAtom extends Atom implements IQueryAtom { @Override public String toString() { StringBuffer s = new StringBuffer(); s.append(getSymbol()).append(" [").append(getSmarts()).append(']'); return s.toString(); } PharmacophoreQueryAtom(String symbol, String smarts); @Override String getSymbol(); @Override void setSymbol(String symbol); String getSmarts(); @Override boolean matches(IAtom atom); @Override String toString();  }
@Test public void testToString() { PharmacophoreQueryAtom qatom = new PharmacophoreQueryAtom("aromatic", "c1ccccc1"); String repr = qatom.toString(); Assert.assertEquals("aromatic [c1ccccc1]", repr); }