@Test
public void testCompare_IsotopePattern_IsotopePattern() {

    IsotopePatternSimilarity is = new IsotopePatternSimilarity();
    IsotopePattern spExp = new IsotopePattern();
    spExp.setMonoIsotope(new IsotopeContainer(156.07770, 1));
    spExp.addIsotope(new IsotopeContainer(157.07503, 0.0004));
    spExp.addIsotope(new IsotopeContainer(157.08059, 0.0003));
    spExp.addIsotope(new IsotopeContainer(158.08135, 0.002));
    IMolecularFormula formula = MolecularFormulaManipulator.getMajorIsotopeMolecularFormula("C6H10N3O2", builder);
    IsotopePatternGenerator isotopeGe = new IsotopePatternGenerator(0.1);
    IsotopePattern patternIsoPredicted = isotopeGe.getIsotopes(formula);
    IsotopePattern patternIsoNormalize = IsotopePatternManipulator.normalize(patternIsoPredicted);
    double score = is.compare(spExp, patternIsoNormalize);
    Assert.assertNotSame(0.0, score);
}