@Test
public void testAllocResponseId() throws Exception {

  ApplicationMasterProtocol scheduler = new MockScheduler();
  Configuration conf = new Configuration();
  LocalContainerAllocator lca =
      new StubbedLocalContainerAllocator(scheduler);
  lca.init(conf);
  lca.start();
  // do two heartbeats to verify the response ID is being tracked
  lca.heartbeat();
  lca.heartbeat();
  lca.close();
}