### Question:
MessageCallback { public void sendRealtimeMessage(Message message) { MessageWebsocketHandler handler = new MessageWebsocketHandler(); handler.sendRealTimeMessage(name, message); } MessageCallback(String name); void sendRealtimeMessage(Message message);  }### Answer:
@Test public void testSendRealtimeMessage() { messageCallback.sendRealtimeMessage(message); Mockito.verify(messageWebsocketHandler).sendRealTimeMessage(Mockito.eq(name), Mockito.eq(message)); }