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

  finishApplicationMaster(
      FinishApplicationMasterRequest.newInstance(null, null, null),
      attemptId);
}