@Test
@Transactional
public void test_listTopics_noSearchString() throws Exception {

    // Create a cluster.
    final Cluster cluster = clusterTestTools.createCluster(
        "Test Cluster",
        sharedKafkaTestResource.getKafkaConnectString()
    );
    // Create some topics
    final String expectedTopic1 = "A-ExpectedTopic1-" + System.currentTimeMillis();
    final String expectedTopic2= "C-ExpectedTopic2-" + System.currentTimeMillis();
    final String expectedTopic3 = "B-ExpectedTopic3-" + System.currentTimeMillis();
    sharedKafkaTestResource
        .getKafkaTestUtils()
        .createTopic(expectedTopic1, 1, (short) 1);
    sharedKafkaTestResource
        .getKafkaTestUtils()
        .createTopic(expectedTopic2, 1, (short) 1);
    sharedKafkaTestResource
        .getKafkaTestUtils()
        .createTopic(expectedTopic3, 1, (short) 1);
    // Hit end point
    mockMvc
        .perform(get("/api/cluster/" + cluster.getId() + "/topics/list")
            .with(user(nonAdminUserDetails))
            .with(csrf())
            .contentType(MediaType.APPLICATION_JSON)
        )
        .andDo(print())
        .andExpect(status().isOk())
        // Validate all topics show up.
        .andExpect(content().string(containsString(expectedTopic1)))
        .andExpect(content().string(containsString(expectedTopic2)))
        .andExpect(content().string(containsString(expectedTopic3)));
}