### Question:
DefaultQueryManager implements QueryManager { @NotNull @Override public Task<Packet> sendPacketQuery(@NotNull NetworkChannel channel, @NotNull UUID queryUniqueId, @NotNull Packet packet) { packet.setQueryUniqueID(queryUniqueId); Task<Packet> task = new DefaultTask<>(); this.waitingQueries.put(queryUniqueId, task); channel.sendPacket(packet); return task; }  @NotNull @Override Optional<Task<Packet>> getWaitingQuery(@NotNull UUID queryUniqueId); @NotNull @Override Task<Packet> sendPacketQuery(@NotNull NetworkChannel channel, @NotNull UUID queryUniqueId, @NotNull Packet packet);  }### Answer:
@Test public void testSendPacketQuery() { NetworkChannel dummyChannel = Mockito.mock(NetworkChannel.class); Packet dummyPacket = Mockito.mock(Packet.class); UUID queryUniqueId = UUID.randomUUID(); this.queryManager.sendPacketQuery(dummyChannel, queryUniqueId, dummyPacket); Assertions.assertTrue(this.queryManager.getWaitingQuery(queryUniqueId).isPresent()); }