*/
public static Service createSplunkServiceReturningThawPathForIndex(
String indexName, String thawLocationPath) {
Service splunkService = mock(Service.class);
IndexCollection indexesMock = mock(IndexCollection.class);
Index indexMock = mock(Index.class);
when(splunkService.getIndexes()).thenReturn(indexesMock);
when(indexesMock.get(indexName)).thenReturn(indexMock);
when(indexMock.getThawedPathExpanded()).thenReturn(thawLocationPath);
return splunkService;
}