/** Creates a new workspace. */
private WebResource createWorkspace(Client c) {
WebResource r = c.resource("http://localhost:8080/client/work");
try {
r.post(String.class, "");
fail("We should have been redirected to a new workspace.");
return null; // to keep the compiler happy, it does not understand what fail() does
}
catch (UniformInterfaceException e) {
return c.resource(e.getResponse().getLocation());