EgoMeasure extends Measure<V> { @Override public String toString() { return super.toString() + ", size: " + getSize() + ", ties: " + getTies() + ", pairs: " + getPairs() + ", density: " + getDensity() + ", ego betweeness centrality: " + betweennessCentrality; } EgoMeasure(final V vertex, final long size, final long ties, 
            final double betweennessCentrality); long getSize(); long getTies(); long getPairs(); double getDensity(); double getBetweennessCentrality(); @Override String toString();  }
@Test public void testToString() { String expResult = "V, size: 1, ties: 1, pairs: 0, density: 1.0, ego betweeness centrality: 2.0"; String result = instance.toString(); assertEquals(expResult, result); }