@Test public void channelName_queueAndTopic_queueOnQueueName() throws JMSException {

  QueueAndTopic destination = mock(QueueAndTopic.class);
  when(destination.getQueueName()).thenReturn("queue-foo");
  assertThat(MessageParser.channelName(destination))
    .isEqualTo("queue-foo");
}