@Test
public void buildUrl_insecureMode_noQueryParam() throws Exception {

    List<ComponentProcess> uiProcesses = buildUiComponentProcesses();
    new Expectations() {{
        securityContext.getAuthenticationScheme(); result = AUTHENTICATION_SCHEME_NOT_KERBEROS;
        stormUi.getId(); result = 2L;
        environmentService.listComponentProcesses(2L); result = uiProcesses;
    }};
    final StormMetadataService stormMetadataService = new StormMetadataService
            .Builder(environmentService, 1L, securityContext, subject).build();
    final String tpSumUrl = stormMetadataService.getTopologySummaryUrl();
    Assert.assertTrue(tpSumUrl.equals(STORM_UI_URL_EXPECTED));
}