@Override
 @Test
 public void collectDouble() {
   MutableBag<Integer> integers = UnmodifiableBag.of(HashBag.newBagWith(1, 2, 2, 3, 3, 3));
   Assert.assertEquals(
       DoubleHashBag.newBagWith(1.0d, 2.0d, 2.0d, 3.0d, 3.0d, 3.0d),
       integers.collectDouble(PrimitiveFunctions.unboxIntegerToDouble()));
 }
 @Test
 public void collectDouble() {
   ImmutableCollection<Integer> integers = this.classUnderTest();
   ImmutableDoubleCollection immutableCollection =
       integers.collectDouble(PrimitiveFunctions.unboxIntegerToDouble());
   Verify.assertSize(integers.size(), immutableCollection);
   Assert.assertEquals(
       integers,
       immutableCollection.collect(doubleParameter -> Integer.valueOf((int) doubleParameter)));
 }