MoleculeFromSignatureBuilder extends AbstractGraphBuilder { @Override public void makeVertex(String label) { this.container.addAtom(this.builder.newInstance(IAtom.class, label)); } MoleculeFromSignatureBuilder(IChemObjectBuilder builder); @Override /** {@inheritDoc} */ void makeEdge(int vertexIndex1, int vertexIndex2, String vertexSymbol1, String vertexSymbol2,
            String edgeLabel); @Override /** {@inheritDoc} */ void makeGraph(); @Override /** {@inheritDoc} */ void makeVertex(String label); IAtomContainer getAtomContainer();  }
@Test public void makeVertexTest() { MoleculeFromSignatureBuilder builder = new MoleculeFromSignatureBuilder(SilentChemObjectBuilder.getInstance()); builder.makeGraph(); builder.makeVertex("C"); IAtomContainer product = builder.getAtomContainer(); Assert.assertEquals(1, product.getAtomCount()); }