### Question:
ReplicationEnvironment implements ChangelogStateProvider { long getCnIndexDBLastRotationTime() { return cnIndexDBLastRotationTime; } ReplicationEnvironment(final String rootPath,
      final ReplicationServer replicationServer, final TimeService timeService); @Override ChangelogState getChangelogState();  }### Answer:
@Test public void testLastRotationTimeRetrievalWithNoRotationFile() throws Exception { final File rootPath = new File(TEST_DIRECTORY_CHANGELOG); TimeService time = mock(TimeService.class); when(time.now()).thenReturn(100L); ReplicationEnvironment environment = new ReplicationEnvironment(rootPath.getAbsolutePath(), null, time); assertThat(environment.getCnIndexDBLastRotationTime()).isEqualTo(100L); }