@Test
public void prepareLanderConfiguration() {

  Map<Integer, Long> latestOffsets = ImmutableMap.of(1, 10L, 2, 20L);
  Map<Integer, Long> committedOffsets = ImmutableMap.of(1, 5L, 2, 15L);
  when(offsetManager.getLatestOffsets(TOPIC_NAME)).thenReturn(latestOffsets);
  when(offsetManager.getCommittedOffsets(TOPIC_NAME)).thenReturn(committedOffsets);
  assertThat(underTest.getState(), is(State.IDLE));
  LanderConfiguration landerConfiguration = underTest.prepareLanderConfiguration(ACQUISITION_INSTANT);
  assertThat(landerConfiguration, is(expectedLanderConfiguration));
  assertThat(underTest.getState(), is(State.LANDING));
}