configurationManager.updateResourceConfiguration(overlord, resource.getId(), rollbackToHere);
Thread.sleep(3000); // wait for the test agent to complete the request
criteria = new ResourceConfigurationUpdateCriteria();
criteria.addFilterResourceIds(resource.getId());
criteria.fetchConfiguration(true);
criteria.addSortCreatedTime(PageOrdering.ASC);
history = configurationManager.findResourceConfigurationUpdatesByCriteria(overlord, criteria);
assert history != null;
assert history.size() == 4;