@Test
public void shouldReturnPreviousEventNumber() throws Exception {

    assertThat(metadata.previousEventNumber().isPresent(), is(true));
    assertThat(metadata.previousEventNumber().get(), equalTo(PREVIOUS_EVENT_NUMBER_VALUE));
}