@Test
public void shouldClaimAndGet() throws Exception
{
assertEquals(SingleProducerSequencer.INITIAL_CURSOR_VALUE, ringBuffer.getCursor());
StubEvent expectedEvent = new StubEvent(2701);
ringBuffer.publishEvent(StubEvent.TRANSLATOR, expectedEvent.getValue(), expectedEvent.getTestString());
long sequence = sequenceBarrier.waitFor(0);
assertEquals(0, sequence);
StubEvent event = ringBuffer.get(sequence);
assertEquals(expectedEvent, event);
assertEquals(0L, ringBuffer.getCursor());
}