// Get the text and compare to the original
r.get();
assertTrue(r.getStatus().equals(Status.SUCCESS_OK));
assertEquals(r.getResponseEntity().getText(), text);
r.release();
// Write the text to file
ClientResource r2 = new ClientResource(fzr2);
r2.put(new StringRepresentation(text2));
assertTrue(r2.getStatus().equals(Status.SUCCESS_OK));