AtomRefinable implements Refinable { @Override public int getVertexCount() { return atomContainer.getAtomCount(); } AtomRefinable(IAtomContainer atomContainer);  AtomRefinable(IAtomContainer atomContainer, boolean ignoreElements, boolean ignoreBondOrders); @Override Invariant neighboursInBlock(Set<Integer> block, int vertexIndex); @Override int getVertexCount(); @Override int getConnectivity(int vertexI, int vertexJ); @Override Partition getInitialPartition();  }
@Test public void getVertexCount() { IAtomContainer ac = makeAtomContainer("CCCC"); AtomRefinable refinable = new AtomRefinable(ac); assertEquals(ac.getAtomCount(), refinable.getVertexCount()); }