GlobalMeasure { public long getPairs() { return pairs; } GlobalMeasure(long size, long ties);  GlobalMeasure(long size, long ties, double diameter); long getSize(); long getTies(); double getDensity(); long getPairs(); double getDiameter(); @Override String toString();  }
@Test public void testPairs() { GlobalMeasure test1 = new GlobalMeasure(2, 2, 0.0d); GlobalMeasure test2 = new GlobalMeasure(10, 5, 0.0d); GlobalMeasure test3 = new GlobalMeasure(1, 1, 0.0d); assertEquals(2, test1.getPairs()); assertEquals(90, test2.getPairs()); assertEquals(0, test3.getPairs()); }