@Override
  public boolean isEmpty() {
    return commandTopic.getEndOffset() == 0;
  }
@Test
  public void shouldComputeEmptyCorrectly() {
    // Given:
    when(commandTopic.getEndOffset()).thenReturn(0L);

    // When/Then:
    assertThat(commandStore.isEmpty(), is(true));
  }