HashGeneratorMaker { public HashGeneratorMaker radical() { encoderSet.add(BasicAtomEncoder.FREE_RADICALS); return this; }  HashGeneratorMaker depth(int depth); HashGeneratorMaker elemental(); HashGeneratorMaker isotopic(); HashGeneratorMaker charged(); HashGeneratorMaker orbital(); HashGeneratorMaker radical(); HashGeneratorMaker chiral(); HashGeneratorMaker suppressHydrogens(); HashGeneratorMaker perturbed(); HashGeneratorMaker encode(AtomEncoder encoder); EnsembleHashGenerator ensemble(); MoleculeHashGenerator molecular(); AtomHashGenerator atomic();  }
@Test public void testRadical() { AtomHashGenerator generator = new HashGeneratorMaker().depth(0).radical().atomic(); List<AtomEncoder> encoders = getEncoders((BasicAtomHashGenerator) generator); org.hamcrest.MatcherAssert.assertThat(encoders.size(), is(1)); org.hamcrest.MatcherAssert.assertThat(encoders.get(0), is((AtomEncoder) FREE_RADICALS)); }