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

  LOG.info("Test FederationClientInterceptor: Get New Application");
  GetNewApplicationRequest request = GetNewApplicationRequest.newInstance();
  GetNewApplicationResponse response = interceptor.getNewApplication(request);
  Assert.assertNotNull(response);
  Assert.assertNotNull(response.getApplicationId());
  Assert.assertTrue(response.getApplicationId()
      .getClusterTimestamp() == ResourceManager.getClusterTimeStamp());
}