contentBytes = content.getBytes();
}
ContentStream contentStream = new ContentStreamImpl(doc.getName(), BigInteger.valueOf(contentBytes.length),
"text/plain", new ByteArrayInputStream(contentBytes));
ObjectId newVersionId = pwc.checkIn(true, null, contentStream, "test version " + version);
Document newVersion = (Document) session.getObject(newVersionId, SELECT_ALL_NO_CACHE_OC);
addResult(checkObject(session, newVersion, getAllProperties(newVersion), "Version " + version + " compliance"));
// check version history