SimpleChromatogram implements Chromatogram { @Override @Nonnull public List<IsolationInfo> getIsolations() { return isolations; }  @Override @Nullable RawDataFile getRawDataFile(); void setRawDataFile(@Nonnull RawDataFile newRawDataFile); @Override @Nonnull Integer getChromatogramNumber(); void setChromatogramNumber(@Nonnull Integer chromatogramNumber); @Override @Nonnull ChromatogramType getChromatogramType(); void setChromatogramType(@Nonnull ChromatogramType newChromatogramType); @Override @Nonnull Integer getNumberOfDataPoints(); @Override @Nonnull float[] getRetentionTimes(); @Nonnull float[] getRetentionTimes(@Nullable float[] array); @Override @Nonnull double[] getMzValues(); @Nonnull double[] getMzValues(@Nullable double[] array); @Override @Nonnull float[] getIntensityValues(); @Override @Nonnull float[] getIntensityValues(@Nullable float array[]); synchronized void setDataPoints(@Nonnull float rtValues[], @Nullable double mzValues[],
      @Nonnull float intensityValues[], @Nonnull Integer size); @Override @Nonnull List<IsolationInfo> getIsolations(); @Override @Nonnull SeparationType getSeparationType(); void setSeparationType(@Nonnull SeparationType separationType); @Override @Nullable Double getMz(); void setMz(@Nullable Double newMz); void setIonAnnotation(@Nonnull IonAnnotation ionAnnotation); @Override IonAnnotation getIonAnnotation(); @Override @Nullable Range<Float> getRtRange(); synchronized void addDataPoint(@Nonnull Float rt, @Nullable Double mz,
      @Nonnull Float intensity);  }
@Test public void testIsolationInfo() throws MSDKException { Assert.assertEquals(new LinkedList<>(), chromatogram1.getIsolations()); final @Nonnull List<IsolationInfo> newIsolations = chromatogram1.getIsolations(); newIsolations.add(new SimpleIsolationInfo(Range.closed(1.2, 8.9))); newIsolations.add(new SimpleIsolationInfo(Range.closed(0.0, 10.0), 0.5f, 500.123, 1, null, null)); Assert.assertEquals(Range.closed(0.0, 10.0), newIsolations.get(1).getIsolationMzRange()); Assert.assertEquals(new Float(0.5), newIsolations.get(1).getIonInjectTime()); Assert.assertEquals(new Double(500.123), newIsolations.get(1).getPrecursorMz()); Assert.assertEquals(new Integer(1), newIsolations.get(1).getPrecursorCharge()); }