BondRefinable implements Refinable { @Override public int getVertexCount() { return atomContainer.getBondCount(); } BondRefinable(IAtomContainer atomContainer);  BondRefinable(IAtomContainer atomContainer, boolean ignoreBondOrders); @Override int getVertexCount(); @Override int getConnectivity(int vertexI, int vertexJ); @Override Invariant neighboursInBlock(Set<Integer> block, int vertexIndex); Partition getInitialPartition();  }
@Test public void getVertexCount() { String acpString = "C0C1C2C3 0:1(1),1:2(1),2:3(1)"; BondRefinable bondRefinable = refinable(acpString); assertEquals(3, bondRefinable.getVertexCount()); }