### Question:
HashSet extends Set<E> { @Override public boolean remove(E object) { return backingMap.remove(object) != null; } HashSet();  HashSet(int capacity);  HashSet(int capacity, float loadFactor);  HashSet(Collection<E> collection);  HashSet(E... args);   HashSet(HashMap<E, HashSet<E>> backingMap); @Override boolean add(E object); @Override void clear(); @Override boolean contains(E object); @Override boolean isEmpty(); @Override Iterator<E> iterator(); @Override boolean remove(E object); @Override int size();  }### Answer:
@Test public void testRemove() { int size = hs.size(); hs.remove(98); assertTrue("Failed to remove element", !hs.contains(98)); assertTrue("Failed to decrement set size", hs.size() == size - 1); }