@Test public void show() { Geoserver gs = new Geoserver(); GeoserverCommands commands = new GeoserverCommands(); commands.setGeoserver(gs); String url = "http://localhost:8080/geoserver"; String user = "******"; String pass = "******"; commands.set(url, user, pass); String expected = "http://localhost:8080/geoserver admin geoserver"; String actual = commands.show(); assertEquals(expected, actual); }