### Question:
Producer { public void sendName(String firstName, String lastName) throws JMSException { String text = firstName + " " + lastName; TextMessage textMessage = session.createTextMessage(text); messageProducer.send(textMessage); LOGGER.debug("producer sent message with text='{}'", text); }  void create(String destinationName); void close(); void sendName(String firstName, String lastName);  }### Answer:
@Test public void testGetGreeting() { try { producer.sendName("John", "Doe"); String greeting = consumer.getGreeting(1000); assertEquals("Hello John Doe!", greeting); } catch (JMSException e) { fail("a JMS Exception occurred"); } }