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

  LOG.info(
      "Test FederationClientInterceptor: Submit Application - Multiple");
  ApplicationId appId =
      ApplicationId.newInstance(System.currentTimeMillis(), 1);
  SubmitApplicationRequest request = mockSubmitApplicationRequest(appId);
  // First attempt
  SubmitApplicationResponse response = interceptor.submitApplication(request);
  Assert.assertNotNull(response);
  SubClusterId scIdResult = stateStoreUtil.queryApplicationHomeSC(appId);
  Assert.assertNotNull(scIdResult);
  // First retry
  response = interceptor.submitApplication(request);
  Assert.assertNotNull(response);
  SubClusterId scIdResult2 = stateStoreUtil.queryApplicationHomeSC(appId);
  Assert.assertNotNull(scIdResult2);
  Assert.assertEquals(scIdResult, scIdResult);
}