@Test
public void testCustomResourceRequestedUnitIsGreaterThanAvailableUnit2() {

  Resource requestedResource = ResourceTypesTestHelper.newResource(1, 1,
          ImmutableMap.<String, String>builder().put("custom-resource-1", "11M")
                  .build());
  Resource availableResource =
          ResourceTypesTestHelper.newResource(1, 1,
                  ImmutableMap.of("custom-resource-1", "1G"));
  try {
    SchedulerUtils.checkResourceRequestAgainstAvailableResource(
            requestedResource, availableResource);
  } catch (InvalidResourceRequestException e) {
    fail(String.format(
            "Resource request should be accepted. Requested: %s, available: %s",
            requestedResource, availableResource));
  }
}