@Test
public void testSwap() {
SequenceIDBuffer buffer = new SequenceIDBuffer(2);
buffer.put(0, Long.MAX_VALUE);
buffer.put(1, Long.MIN_VALUE);
buffer.swap(0, 1);
Assert.assertEquals(buffer.get(0), Long.MIN_VALUE);
Assert.assertEquals(buffer.get(1), Long.MAX_VALUE);
}
}