@Test
public void testBootstrapWithMockGpuDiscoverer() throws Exception {

  GpuDiscoverer mockDiscoverer = mock(GpuDiscoverer.class);
  Configuration conf = new YarnConfiguration();
  mockDiscoverer.initialize(conf, nvidiaBinaryHelper);
  expected.expect(ResourceHandlerException.class);
  gpuResourceHandler.bootstrap(conf);
}