BoundedSetFactory { public BoundedSet<V> empty() { return new BoundedSetImpl(); } BoundedSetFactory(int limit); BoundedSet<V> empty(); BoundedSet<V> singleton(V el); BoundedSet<V> top();  }
@Test public void testEmpty() { for(int i : TEST_BOUNDS) { BoundedSet<String> bs = new BoundedSetFactory<String>(i).empty(); assert(bs.getSize() == 0); assert(bs.getSet().size() == 0); } }