@Test
public void testListingIsSorted() {

    final String topic1 = "TopicA";
    final String topic2 = "AnotherTopic";
    final String topic3 = "123Topic";
    final List<TopicListing> topicListingList = new ArrayList<>();
    topicListingList.add(new TopicListing(topic1, false));
    topicListingList.add(new TopicListing(topic2, false));
    topicListingList.add(new TopicListing(topic3, false));
    // Create instance
    final TopicList topicList = new TopicList(topicListingList);
    final List<String> results = topicList.getTopicNames();
    // Validate its sorted
    assertEquals(topic3, results.get(0));
    assertEquals(topic2, results.get(1));
    assertEquals(topic1, results.get(2));
}