@Test
public void testBootstrap() throws Exception {

  Configuration conf = new YarnConfiguration();
  List<PrivilegedOperation> ret =
      cGroupsCpuResourceHandler.bootstrap(plugin, conf);
  verify(mockCGroupsHandler, times(1))
      .initializeCGroupController(CGroupsHandler.CGroupController.CPU);
  verify(mockCGroupsHandler, times(0))
      .updateCGroupParam(CGroupsHandler.CGroupController.CPU, "",
          CGroupsHandler.CGROUP_CPU_PERIOD_US, "");
  verify(mockCGroupsHandler, times(0))
      .updateCGroupParam(CGroupsHandler.CGroupController.CPU, "",
          CGroupsHandler.CGROUP_CPU_QUOTA_US, "");
  Assert.assertNull(ret);
}