@Test
 void isEmptyTest() {
   final HopscotchCollection<Integer> hopscotchCollection = new HopscotchCollection<>();
   Assert.assertTrue(hopscotchCollection.isEmpty());
   hopscotchCollection.add(1);
   Assert.assertFalse(hopscotchCollection.isEmpty());
 }
 @Test
 void clearTest() {
   final HopscotchCollection<Integer> hopscotchCollection = new HopscotchCollection<>(testVals);
   hopscotchCollection.clear();
   Assert.assertEquals(hopscotchCollection.size(), 0);
   Assert.assertEquals(SVUtils.iteratorSize(hopscotchCollection.iterator()), 0);
 }
 @Test
 void findTest() {
   final HopscotchCollection<Integer> hopscotchCollection = new HopscotchCollection<>(testVals);
   for (final Integer value : testVals) {
     Assert.assertEquals(hopscotchCollection.find(value), value);
   }
   Assert.assertNull(hopscotchCollection.find(notInTestVals));
 }
 @Test
 void addTest() {
   final HopscotchCollection<Integer> hopscotchCollection =
       new HopscotchCollection<>(testVals.size());
   testVals.stream().forEach(hopscotchCollection::add);
   Assert.assertEquals(hopscotchCollection.size(), testVals.size());
   Assert.assertTrue(hopscotchCollection.containsAll(testVals));
 }
 @Test
 void removeAllTest() {
   final HopscotchCollection<Integer> hopscotchCollection = new HopscotchCollection<>(testVals);
   Assert.assertFalse(hopscotchCollection.removeAll(Arrays.asList(notInTestVals)));
   Assert.assertTrue(hopscotchCollection.removeAll(Arrays.asList(testVals.get(0))));
   Assert.assertTrue(hopscotchCollection.removeAll(new HashSet<Integer>(testVals)));
   Assert.assertTrue(hopscotchCollection.isEmpty());
 }
 @Test
 void removeEachTest() {
   final HopscotchCollection<Integer> hopscotchCollection = new HopscotchCollection<>(testVals);
   Assert.assertFalse(hopscotchCollection.removeEach(notInTestVals));
   for (final Integer value : new HashSet<Integer>(testVals)) {
     Assert.assertTrue(hopscotchCollection.removeEach(value));
   }
   Assert.assertTrue(hopscotchCollection.isEmpty());
 }
 @Test
 void findEachTest() {
   final HopscotchCollection<Integer> hopscotchCollection = new HopscotchCollection<>(testVals);
   for (final Integer value : testVals) {
     Assert.assertEquals(
         SVUtils.iteratorSize(hopscotchCollection.findEach(value)),
         testVals.stream().filter(i -> i.equals(value)).count());
   }
   Assert.assertEquals(SVUtils.iteratorSize(hopscotchCollection.findEach(notInTestVals)), 0);
 }
 @Test
 void resizeTest() {
   final HopscotchCollection<Integer> hopscotchCollection = new HopscotchCollection<>(1);
   final int N_ENTRIES = 1000000;
   for (int idx = 0; idx != N_ENTRIES; ++idx) {
     hopscotchCollection.add(idx);
   }
   Assert.assertEquals(hopscotchCollection.size(), N_ENTRIES);
   Assert.assertEquals(hopscotchCollection.stream().mapToInt(i -> i).min().orElse(-1), 0);
   Assert.assertEquals(
       hopscotchCollection.stream().mapToInt(i -> i).max().orElse(-1), N_ENTRIES - 1);
 }
 @Test
 void sizeTest() {
   final HopscotchCollection<Integer> hopscotchCollection = new HopscotchCollection<>();
   Assert.assertEquals(hopscotchCollection.size(), 0);
   hopscotchCollection.addAll(testVals);
   Assert.assertEquals(hopscotchCollection.size(), testVals.size());
   hopscotchCollection.add(notInTestVals);
   Assert.assertEquals(hopscotchCollection.size(), testVals.size() + 1);
   hopscotchCollection.removeEach(notInTestVals);
   Assert.assertEquals(hopscotchCollection.size(), testVals.size());
   hopscotchCollection.clear();
   Assert.assertEquals(hopscotchCollection.size(), 0);
 }
 @Test
 void iteratorTest() {
   final HopscotchCollection<Integer> hopscotchCollection = new HopscotchCollection<>(testVals);
   Assert.assertEquals(SVUtils.iteratorSize(hopscotchCollection.iterator()), testVals.size());
   final Integer KEY_TO_REMOVE = 1;
   final Iterator<Integer> itr1 = hopscotchCollection.iterator();
   while (itr1.hasNext()) {
     if (itr1.next().equals(KEY_TO_REMOVE)) itr1.remove();
   }
   final int onesCount = (int) testVals.stream().filter(i -> i.equals(KEY_TO_REMOVE)).count();
   Assert.assertEquals(hopscotchCollection.size(), testVals.size() - onesCount);
   Assert.assertEquals(
       SVUtils.iteratorSize(hopscotchCollection.iterator()), hopscotchCollection.size());
   final Iterator<Integer> itr2 = hopscotchCollection.iterator();
   while (itr2.hasNext()) {
     itr2.next();
     itr2.remove();
   }
   Assert.assertTrue(hopscotchCollection.isEmpty());
   Assert.assertEquals(
       SVUtils.iteratorSize(hopscotchCollection.iterator()), hopscotchCollection.size());
 }
 @Test
 void containsTest() {
   final HopscotchCollection<Integer> hopscotchCollection = new HopscotchCollection<>(testVals);
   Assert.assertTrue(hopscotchCollection.containsAll(testVals));
   Assert.assertFalse(hopscotchCollection.contains(notInTestVals));
 }
 @Test
 void createFromCollectionTest() {
   final HopscotchCollection<Integer> hopscotchCollection = new HopscotchCollection<>(testVals);
   Assert.assertEquals(hopscotchCollection.size(), testVals.size());
   Assert.assertTrue(hopscotchCollection.containsAll(testVals));
 }