@Test
public void testGetIndicesLastLastDays() throws Exception {

    TestRequest request = new TestRequest();
    LastFilter filter = new LastFilter();
    filter.setDuration(Duration.days(2));
    filter.setCurrentTime(TEST_CURRENT_TIME);
    request.setFilters(Collections.<Filter>singletonList(filter));
    String indexes[] = ElasticsearchUtils.getIndices("test", request,
                                                     new PeriodSelector(request.getFilters()).analyze(TEST_CURRENT_TIME)
                                                    );
    System.out.println(Arrays.toString(indexes));
    Assert.assertArrayEquals(
            new String[]{"foxtrot-test-table-02-4-2015", "foxtrot-test-table-03-4-2015", "foxtrot-test-table-04-4-2015"}, indexes);
}