InputStream input = rep.read();
byte[] inputBytes = AdminTestUtil.copy(input);
assert AdminTestUtil.byteArraysEqual(inputBytes, testContent) : "We got something different than 'initial' from read: " + new String(inputBytes);
// backup what's in the repository
rep.backup();
// write new content
byte[] newTestContent = new byte[] {'n', 'e', 'w'};
rep.write(new ByteArrayInputStream(newTestContent));