### Question:
JMSMessageConsumer { void rollback() { try { session.rollback(); } catch (JMSException jmsException) { logger.warn("JMS Exception processing rollback", jmsException); } } JMSMessageConsumer(ConnectionFactory connectionFactory,
      String destinationName, JMSDestinationType destinationType,
      String messageSelector, int batchSize, long pollTimeout,
      JMSMessageConverter messageConverter, Optional<String> userName,
      Optional<String> password);   }### Answer:
@Test public void testRollback() throws Exception { consumer = create(); consumer.rollback(); verify(session, times(1)).rollback(); }