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

  Response response = interceptor.createNewApplication(null);
  Assert.assertNotNull(response);
  NewApplication ci = (NewApplication) response.getEntity();
  Assert.assertNotNull(ci);
  ApplicationId appId = ApplicationId.fromString(ci.getApplicationId());
  Assert.assertTrue(appId.getClusterTimestamp() < NUM_SUBCLUSTER);
  Assert.assertTrue(appId.getClusterTimestamp() >= 0);
}