@Test
public void testListDateRangeNoBackups() throws Exception {

    String dateRange =
            String.format(
                    "%s,%s",
                    new SimpleDateFormat("yyyymmdd").format(new Date()),
                    new SimpleDateFormat("yyyymmdd").format(new Date()));
    new Expectations() {
        {
            backupRestoreUtil.getLatestValidMetaPath(
                    metaV2Proxy, new DateUtil.DateRange((Instant) any, (Instant) any));
            result = Optional.empty();
        }
    };
    Response response = resource.list(dateRange);
    assertEquals(200, response.getStatus());
    assertEquals(response.getEntity().toString(), "No valid meta found!");
}