@Override public Destination getDestination( JmsDelegate meta ) {
    checkNotNull( meta.destinationName, getString( JmsConstants.PKG, "JmsWebsphereMQ.DestinationNameRequired" ) );
    try {
      String destName = meta.destinationName;
      return isQueue( meta )
        ? new MQQueue( destName )
        : new MQTopic( destName );
    } catch ( JMSException e ) {
      throw new IllegalStateException( e );
    }
  }
@Test
  public void getTopicDestination() {
    jmsDelegate.destinationType = TOPIC.name();
    jmsDelegate.destinationName = "somename";
    Destination dest = jmsProvider.getDestination( jmsDelegate );
    assertTrue( dest instanceof Topic );
  }