@Test
public void getLatestBackup() throws Exception {

    prepare();
    Instant start = DateUtil.parseInstant(backupDate);
    List<BackupMetadata> list =
            backupStatusMgr.getLatestBackupMetadata(
                    BackupVersion.SNAPSHOT_BACKUP,
                    new DateRange(
                            backupDate
                                    + ","
                                    + DateUtil.formatInstant(
                                            DateUtil.yyyyMMddHHmm,
                                            start.plus(12, ChronoUnit.HOURS))));
    Optional<BackupMetadata> backupMetadata = list.stream().findFirst();
    Assert.assertEquals(
            start.plus(4, ChronoUnit.HOURS), backupMetadata.get().getStart().toInstant());
}