### Question:
MutableLinearProbeLongHashSet extends AbstractLinearProbeLongHashSet implements MutableLongSet, Resource { @Override public boolean addAll( long... elements ) { ++modCount; final int prevSize = size(); for ( final long element : elements ) { add( element ); } return prevSize != size(); } MutableLinearProbeLongHashSet( MemoryAllocator allocator ); @Override boolean add( long element ); @Override boolean addAll( long... elements ); @Override boolean addAll( LongIterable elements ); @Override boolean remove( long element ); @Override boolean removeAll( LongIterable elements ); @Override boolean removeAll( long... elements ); @Override boolean retainAll( LongIterable elements ); @Override boolean retainAll( long... source ); @Override void clear(); @Override MutableLongIterator longIterator(); @Override void close(); @Override MutableLongSet tap( LongProcedure procedure ); @Override MutableLongSet with( long element ); @Override MutableLongSet without( long element ); @Override MutableLongSet withAll( LongIterable elements ); @Override MutableLongSet withoutAll( LongIterable elements ); @Override MutableLongSet asUnmodifiable(); @Override MutableLongSet asSynchronized(); @Override LongSet freeze(); @Override ImmutableLongSet toImmutable();  }### Answer:
@Test void forEach() { final LongProcedure consumer = mock( LongProcedure.class ); set.addAll( 1, 2, 100, 200 ); set.forEach( consumer ); verify( consumer ).accept( eq( 1L ) ); verify( consumer ).accept( eq( 2L ) ); verify( consumer ).accept( eq( 100L ) ); verify( consumer ).accept( eq( 200L ) ); verifyNoMoreInteractions( consumer ); }
@Test void toList() { assertEquals( 0, set.toList().size() ); set.addAll( 1, 2, 3, 100, 200, 300 ); assertEquals( newListWith( 1, 2, 3, 100, 200, 300 ), set.toList().sortThis() ); }
@Test void toArray() { assertEquals( 0, set.toArray().length ); set.addAll( 1, 2, 3, 100, 200, 300 ); assertArrayEquals( new long[]{1, 2, 3, 100, 200, 300}, set.toSortedArray() ); }
@Test void allSatisfy() { set.addAll( 1, 2, 3, 100, 200, 300 ); assertTrue( set.allSatisfy( x -> x < 1000 ) ); assertFalse( set.allSatisfy( x -> x % 2 == 0 ) ); }
@Test void noneSatisfy() { set.addAll( 1, 2, 3, 100, 200, 300 ); assertTrue( set.noneSatisfy( x -> x < 0 ) ); assertFalse( set.noneSatisfy( x -> x % 2 == 0 ) ); }
@Test void anySatisfy() { set.addAll( 1, 2, 3, 100, 200, 300 ); assertTrue( set.anySatisfy( x -> x % 3 == 1 ) ); assertFalse( set.anySatisfy( x -> x < 0 ) ); }