### Question:
WDLHooks { public static void onNHPCDisconnect(NetHandlerPlayClient sender, ITextComponent reason) { listener.onNHPCDisconnect(sender, reason); } private  WDLHooks(); static void onWorldClientTick(WorldClient sender); static void onWorldClientRemoveEntityFromWorld(WorldClient sender,
			int eid); static void onNHPCHandleChunkUnload(NetHandlerPlayClient sender,
			WorldClient world, SPacketUnloadChunk packet); static void onNHPCHandleChat(NetHandlerPlayClient sender,
			SPacketChat packet); static void onNHPCHandleMaps(NetHandlerPlayClient sender,
			SPacketMaps packet); static void onNHPCHandleCustomPayload(NetHandlerPlayClient sender,
			SPacketCustomPayload packet); static void onNHPCHandleBlockAction(NetHandlerPlayClient sender,
			SPacketBlockAction packet); static void onNHPCDisconnect(NetHandlerPlayClient sender, ITextComponent reason); static void onCrashReportPopulateEnvironment(CrashReport report); static void injectWDLButtons(GuiIngameMenu gui, Collection<GuiButton> buttonList,
			Consumer<GuiButton> addButton); static void handleWDLButtonClick(GuiIngameMenu gui, GuiButton button);  }### Answer:
@Test public void testDisconnect() { doWithMockHooks(mock -> { makeMockWorld(); TextComponentString reason = new TextComponentString("Disconnected"); clientPlayer.connection.onDisconnect(reason); verify(mock).onNHPCDisconnect(clientPlayer.connection, reason); }); }