### Question:
DefaultPacketProvider implements PacketProvider { @Override public void clearRegisteredPackets() { this.packetClasses.clear(); }  @Override void registerPacket(@NotNull Class<? extends Packet> packetClass); @Override void registerPacket(@NotNull Packet packet); @Override void registerPackets(@NotNull Collection<Class<? extends Packet>> packetClasses); @Override void registerPacket(@NotNull Collection<Packet> packets); @Override void unregisterPacket(int id); @NotNull @Override Optional<Packet> getPacketById(int id); @Override void clearRegisteredPackets();  }### Answer:
@Test @Order(4) void testClearRegisteredPackets() { this.packetProvider.clearRegisteredPackets(); Assertions.assertFalse(this.packetProvider.getPacketById(0).isPresent()); }