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

  LOG.info("Test FederationClientInterceptor: Submit Application");
  ApplicationId appId = ApplicationId.newInstance(System.currentTimeMillis(),
      1);
  SubmitApplicationRequest request = mockSubmitApplicationRequest(appId);
  SubmitApplicationResponse response = interceptor.submitApplication(request);
  Assert.assertNotNull(response);
  SubClusterId scIdResult = stateStoreUtil.queryApplicationHomeSC(appId);
  Assert.assertNotNull(scIdResult);
  Assert.assertTrue(subClusters.contains(scIdResult));
}