IsotopePatternSimilarity { public double getTolerance() { return tolerance_ppm; } IsotopePatternSimilarity(); void seTolerance(double tolerance); double getTolerance(); double compare(IsotopePattern isoto1, IsotopePattern isoto2);  }
@Test public void testGetTolerance() { IsotopePatternSimilarity is = new IsotopePatternSimilarity(); is.seTolerance(0.001); Assert.assertEquals(0.001, is.getTolerance(), 0.000001); }