void updateSlobrokList(ApplicationInfo application) {
        List<String> slobrokSpecs = getSlobrokSpecs(application);
        slobrokList.setup(slobrokSpecs.toArray(new String[0]));
    }
@Test
    public void testUpdateSlobrokList2() {
        final String hostname = "hostname";
        final int port = 1;

        SuperModel superModel = ExampleModel.createExampleSuperModelWithOneRpcPort(hostname, port);
        slobrokMonitor.updateSlobrokList(superModel.getApplicationInfo(ExampleModel.APPLICATION_ID).get());

        String[] expectedSpecs = new String[] {"tcp/" + hostname + ":" + port};
        verify(slobrokList).setup(expectedSpecs);
    }