@Test
public void testRevisionTimestampTracking() {

    Write w0 = TestData.getWriteRemove();
    Write w1 = TestData.getWriteAdd();
    segment.transfer(w1);
    Assert.assertEquals(w1.getVersion(), segment.minTs);
    Assert.assertEquals(w1.getVersion(), segment.maxTs);
    Write w2 = TestData.getWriteAdd();
    segment.transfer(w2);
    Assert.assertEquals(w1.getVersion(), segment.minTs);
    Assert.assertEquals(w2.getVersion(), segment.maxTs);
    Write w4 = TestData.getWriteAdd();
    Write w3 = TestData.getWriteAdd();
    segment.transfer(w3);
    Assert.assertEquals(w3.getVersion(), segment.maxTs);
    segment.transfer(w4);
    Assert.assertEquals(w3.getVersion(), segment.maxTs);
    segment.transfer(w0);
    Assert.assertEquals(w0.getVersion(), segment.minTs);
}