connection.setRequestMethod("PUT");
OutputStream out = connection.getOutputStream();
model.write(out);
int responseCode = connection.getResponseCode();
assertEquals(200, responseCode);
connection.disconnect();
Model retrievedModel = ModelFactory.createDefaultModel();
retrievedModel.read(sourceURL.toString());
assertTrue("Retrieved model isomorphic to equals", model.isIsomorphicWith(retrievedModel));
webServer.stop();