LogItemRequestMessageSender { public void send(final LogItem logItem) { LOGGER.debug("Sending LogItemRequestMessage"); final LogItemMessageCreator messageCreator = new LogItemMessageCreator(logItem); this.jmsTemplate.send(messageCreator); }  void send(final LogItem logItem);  }
@Test public void shouldSendLogItem() { final LogItem logItem = new LogItem("TEST-DEVICE-1", "TEST-ORG-1", true, "TEST-MESSAGE"); this.messageSender.send(logItem); verify(this.logItemRequestsJmsTemplate).send(any(MessageCreator.class)); }