@Test
public void testSelectIndexIntraMonth() throws Exception {

	when(clock.getTime()).thenReturn(DateUtils.getDayInMillis() * 7);
	final String indexPattern = indexSelector.getIndexPatternOlderThanDays("metrics-", 2);
	assertEquals("metrics-*,-metrics-1970.01.08,-metrics-1970.01.07,-metrics-1970.01.06", indexPattern);
}