@Test
public void testLifeCycle() {

  TrafficController trafficControllerSpy = spy(new TrafficController(conf,
      privilegedOperationExecutorMock));
  TrafficControlBandwidthHandlerImpl handlerImpl = new
      TrafficControlBandwidthHandlerImpl(privilegedOperationExecutorMock,
      cGroupsHandlerMock, trafficControllerSpy);
  try {
    handlerImpl.bootstrap(conf);
    testPreStart(trafficControllerSpy, handlerImpl);
    testPostComplete(trafficControllerSpy, handlerImpl);
  } catch (ResourceHandlerException e) {
    LOG.error("Unexpected exception: " + e);
    Assert.fail("Caught unexpected ResourceHandlerException!");
  }
}