### Question:
AckBitsControl { public void addToAck(NavigableSet<Short> remoteTransmissionIds, short remoteTransmissionId) { int diff; Short id = remoteTransmissionIds.isEmpty() ? null : remoteTransmissionIds.first(); while (id != null) { diff = IdComparator.instance.compare(remoteTransmissionId, id); addToAck(diff); id = remoteTransmissionIds.higher(id); } }  long getAckRemoteBits(); void addToAck(NavigableSet<Short> remoteTransmissionIds, short remoteTransmissionId);  }### Answer:
@Test @Parameters public final void testAddToAckInt(long preBits, int inDiff, long postBits) { ShiftableBitSet actualBitSet = new ShiftableBitSet(preBits); ShiftableBitSet expectedBitSet = new ShiftableBitSet(postBits); AckBitsControl handler = new AckBitsControl(); Deencapsulation.setField(handler, "ackRemoteBits", actualBitSet); String debug = ""; debug += actualBitSet; handler.addToAck(inDiff); debug += ".addToAck(" + inDiff + ")"; debug += " = " + actualBitSet; debug += " != " + expectedBitSet; assertEquals(debug, expectedBitSet.get(), actualBitSet.get()); }