FragmentManager { public void clearFragmentedMessage(Integer messageSeq, Integer epoch) { FragmentKey key = new FragmentKey(messageSeq, epoch); fragments.remove(key); } FragmentManager(Config config); boolean addMessageFragment(DtlsHandshakeMessageFragment fragment); boolean isFragmentedMessageComplete(Integer messageSeq, Integer epoch); List<DtlsHandshakeMessageFragment> getOrderedCombinedUninterpretedMessageFragments(boolean onlyIfComplete); boolean areAllMessageFragmentsComplete(); DtlsHandshakeMessageFragment getCombinedMessageFragment(Integer messageSeq, Integer epoch); void clearFragmentedMessage(Integer messageSeq, Integer epoch);  }
@Test public void testClearFragmentedMessage() { manager.addMessageFragment(fragment(0, 0, 5, 0)); manager.addMessageFragment(fragment(0, 5, 5, 0)); manager.clearFragmentedMessage(0, 0); assertFalse(manager.isFragmentedMessageComplete(0, 0)); assertNull(manager.getCombinedMessageFragment(0, 0)); }