long latestTimestamp = b.getLong(MonitoringDataStorage.LATEST_POSITION);
assertEquals(42, earliestTimestamp);
assertEquals(43, latestTimestamp);
Kryo kryo = new Kryo();
Input input = new Input(new ByteBufferInputStream(b));
input.setPosition(MonitoringDataStorage.FIRST_RECORD_POSITION);
assertEquals("blabla1",((MonitoringDataDummy)kryo.readClassAndObject(input)).value);
assertEquals("blabla2",((MonitoringDataDummy)kryo.readClassAndObject(input)).value);
assertNull(kryo.readClassAndObject(input));
b.putInt(MonitoringDataStorage.LIMIT_POSITION, b.position());