SampleSet implements ISampleSet<T> { @Override public long put(T element) { return put(element, 1); } SampleSet();  SampleSet(int capacity);  SampleSet(int capacity, Random random); @Override CountEntry<T> peek(); @Override List<CountEntry<T>> peek(int k); @Override long put(T element); @Override long put(T element, long incrementCount); @Override T removeRandom(); @Override int size(); @Override long count();  }
@Test public void testPut() { assertEquals(1L, set.put(e[0])); assertEquals(e[0], set.peek().getItem()); assertEquals(e[0], ((SampleSet<String>) set).peekMin()); }