DataTypeUtil { static void pathRevToBuffer(PathRev pr, WriteBuffer buffer) { pathToBuffer(pr.getPath(), buffer); revisionVectorToBuffer(pr.getRevision(), buffer); }    }
@Test public void pathRevToBuffer() { Path p = Path.fromString("/foo/bar/quux"); RevisionVector rv = RevisionVector.fromString("r3-4-1,br4-9-2"); PathRev expected = new PathRev(p, rv); DataTypeUtil.pathRevToBuffer(expected, wb); ByteBuffer rb = readBufferFrom(wb); assertEquals(expected, DataTypeUtil.pathRevFromBuffer(rb)); }