IndexRefreshTracker { public void refresh(Client client) { long time = getTime(); Set<String> indexNamesNeedingRefresh = getIndexNamesNeedingRefresh(time); if (indexNamesNeedingRefresh.size() > 0) { refresh(client, indexNamesNeedingRefresh); removeRefreshedIndexNames(indexNamesNeedingRefresh, time); } } IndexRefreshTracker(VertexiumMetricRegistry metricRegistry); void pushChange(String indexName); void pushChanges(Set<String> indexNames); void refresh(Client client); void refresh(Client client, String... indexNames);  }
@Test public void testRefreshListOfIndexNames_noChanges() { indexRefreshTracker.refresh(null, "a", "b"); assertNull(lastIndexNamesNeedingRefresh); }