@Test
	@Timed(millis=150000)
	public void testAppSubmission() throws Exception {
		ApplicationId applicationId = submitApplication();
		YarnApplicationState state = waitState(applicationId, 120, TimeUnit.SECONDS, YarnApplicationState.RUNNING);
		assertThat(state, notNullValue());
		getYarnClient().killApplication(applicationId);
		state = waitState(applicationId, 20, TimeUnit.SECONDS, YarnApplicationState.KILLED);
		assertThat(state, notNullValue());
		assertThat(state, is(YarnApplicationState.KILLED));
	}
Tests for kill application example.

@author Janne Valkealahti
yarn/yarn/kill-application/src/test/java/org/springframework/yarn/examples/KillApplicationTests.java