@Test public void reset() throws Exception { String url = "/geoserver/rest/reset"; whenHttp(server).match(post(url)).then(stringContent("true"), status(HttpStatus.OK_200)); Geoserver geoserver = new Geoserver("http://00.0.0.0:8888/geoserver", "admin", "geoserver"); GeoserverCommands commands = new GeoserverCommands(); commands.setGeoserver(geoserver); boolean result = commands.reset(); assertTrue(result); verifyHttp(server).once(method(Method.POST), uri(url)); }