@Test
public void testBasic() {

    // Map to elastic
    List<ResourcePoolAssignment> result = resolver.resolve(newJob("myFlex"));
    assertThat(result).hasSize(1);
    assertThat(result.get(0).getResourcePoolName()).isEqualTo("elastic");
    // Map to reserved
    result = resolver.resolve(newJob("myCritical"));
    assertThat(result).hasSize(1);
    assertThat(result.get(0).getResourcePoolName()).isEqualTo("reserved");
}