@Test
public void getTopologies() throws Exception {

    new Expectations() {{
        builder.get(String.class); result = getTopologiesSummary();
        // Means test run in insecure mode as they did before adding security
        securityContext.getAuthenticationScheme(); result = AUTHENTICATION_SCHEME_NOT_KERBEROS;
    }};
    Deencapsulation.setField(stormService, "nimbusProcesses", buildNimbusComponentProcesses());
    Deencapsulation.setField(stormService, "stormUiProcesses", buildUiComponentProcesses());
    final List<String> actualTopologies = stormService.getTopologies().list();
    Collections.sort(actualTopologies);
    final List<String> expectedTopologies = Lists.newArrayList("kafka-topology-2-1474413185",
            "kafka-topology-2-3-1474413375");
    Assert.assertEquals(expectedTopologies, actualTopologies);
}