WeightedObservedPoints implements Serializable { public void clear() { observations.clear(); }  void add(double x, double y); void add(double weight, double x, double y); void add(WeightedObservedPoint observed); List<WeightedObservedPoint> toList(); void clear();  }
@Test public void testClear() { final WeightedObservedPoints store = new WeightedObservedPoints(); store.add(new WeightedObservedPoint(1, 2, 3)); store.add(new WeightedObservedPoint(2, -1, -2)); Assert.assertTrue(store.toList().size() == 2); store.clear(); Assert.assertTrue(store.toList().size() == 0); }