@Test
public void testSubmitApplicationEmptyRequest()
    throws YarnException, IOException, InterruptedException {

  // ApplicationSubmissionContextInfo null
  Response response = interceptor.submitApplication(null, null);
  Assert.assertEquals(BAD_REQUEST, response.getStatus());
  // ApplicationSubmissionContextInfo empty
  response = interceptor
      .submitApplication(new ApplicationSubmissionContextInfo(), null);
  Assert.assertEquals(BAD_REQUEST, response.getStatus());
  ApplicationSubmissionContextInfo context =
      new ApplicationSubmissionContextInfo();
  response = interceptor.submitApplication(context, null);
  Assert.assertEquals(BAD_REQUEST, response.getStatus());
}