BasicAtomGenerator implements IGenerator<IAtomContainer> { protected boolean invisibleCarbon(IAtom atom, IAtomContainer atomContainer, RendererModel model) { return isCarbon(atom) && !showCarbon(atom, atomContainer, model); } BasicAtomGenerator(); @Override IRenderingElement generate(IAtomContainer container, RendererModel model); IRenderingElement generate(IAtomContainer atomContainer, IAtom atom, RendererModel model); IRenderingElement generateCompactElement(IAtom atom, RendererModel model); AtomSymbolElement generateElement(IAtom atom, int alignment, RendererModel model); @Override List<IGeneratorParameter<?>> getParameters();  }
@Test public void invisibleCarbonTest() { IAtom carbon = super.builder.newInstance(IAtom.class, "C"); IAtomContainer dummyContainer = super.builder.newInstance(IAtomContainer.class); model.set(KekuleStructure.class, true); Assert.assertFalse(generator.invisibleCarbon(carbon, dummyContainer, model)); }