@Test(expected = Exception.class)
public void testAllocateWithoutRegister()
    throws YarnException, IOException, InterruptedException {

  allocateAsync(AllocateRequest.newInstance(0, 0, null, null, null), callback,
      attemptId);
}