@Test
public void testBackUpInfo() throws Exception {

    List<BackupMetadata> backupMetadataList = new ArrayList<>();
    backupMetadataList.add(getBackupMetaData());
    new Expectations() {
        {
            backupStatusMgr.getLatestBackupMetadata(
                    BackupVersion.SNAPSHOT_META_SERVICE,
                    new DateUtil.DateRange((Instant) any, (Instant) any));
            result = backupMetadataList;
        }
    };
    Response response = resource.info(backupDate);
    assertEquals(200, response.getStatus());
    assertEquals(
            GsonJsonSerializer.getGson().toJson(backupMetadataList),
            response.getEntity().toString());
}