@Test
public void testRequestMoreThanAvailableGpu()
    throws ResourceHandlerException {

  addGpus(new GpuDevice(1, 1));
  Container container = createMockContainer(2, 5L);
  exception.expect(ResourceHandlerException.class);
  exception.expectMessage("Failed to find enough GPUs");
  testSubject.assignGpus(container);
}