@Test
public void testGetResourceWithAbsolute() {

  ConfigurableResource configurableResource =
      new ConfigurableResource(Resources.createResource(3072, 3));
  assertThat(configurableResource.getResource().getMemorySize()).
      isEqualTo(3072);
  assertThat(configurableResource.getResource().getVirtualCores()).
      isEqualTo(3);
  assertEquals(
      configurableResource.getResource(clusterResource).getMemorySize(),
      3072);
  assertEquals(
      configurableResource.getResource(clusterResource).getVirtualCores(),
      3);
  assertThat(configurableResource.getResource(null).getMemorySize()).
      isEqualTo(3072);
  assertThat(configurableResource.getResource(null).getVirtualCores()).
      isEqualTo(3);
}