@Test
public void testUpdate() {

    // Entries are ordered so this one gets ahead
    config.setProperty("anElastic", ".*Flex");
    clock.advanceTime(1, TimeUnit.HOURS);
    List<ResourcePoolAssignment> result = resolver.resolve(newJob("myFlex"));
    assertThat(result).hasSize(1);
    assertThat(result.get(0).getResourcePoolName()).isEqualTo("anElastic");
}