@Test(expected = YarnException.class)
public void testResourceHandlerNotInitialized() throws YarnException {

  GpuDiscoverer gpuDiscoverer = createMockDiscoverer();
  GpuNodeResourceUpdateHandler gpuNodeResourceUpdateHandler =
      mock(GpuNodeResourceUpdateHandler.class);
  GpuResourcePlugin target =
      new GpuResourcePlugin(gpuNodeResourceUpdateHandler, gpuDiscoverer);
  target.getNMResourceInfo();
}