@Test
 public void setVerbose() {
   Geoserver gs = new Geoserver();
   GeoserverCommands commands = new GeoserverCommands();
   commands.setGeoserver(gs);
   assertFalse(gs.isVerbose());
   assertTrue(commands.verbose(true));
   assertTrue(gs.isVerbose());
 }
 @Test
 public void setBadUrl() throws IOException {
   whenHttp(server)
       .match(get("/geoserver/rest/about/versions.xml"))
       .then(stringContent(getResourceString("version.xml")), status(HttpStatus.OK_200));
   Geoserver gs = new Geoserver();
   GeoserverCommands commands = new GeoserverCommands();
   commands.setGeoserver(gs);
   String url = "http://00.0.0.0:8888/bad_url/geoserver";
   String user = "******";
   String pass = "******";
   boolean result = commands.set(url, user, pass);
   assertFalse(result);
   assertEquals(url, gs.getUrl());
   assertEquals(user, gs.getUser());
   assertEquals(pass, gs.getPassword());
 }