public class CustomAmserviceTests extends AbstractYarnClusterTests {
@Test
@Timed(millis=130000)
public void testAppSubmission() throws Exception {
ApplicationInfo info = submitApplicationAndWait(120, TimeUnit.SECONDS);
assertThat(info, notNullValue());
assertThat(info.getYarnApplicationState(), notNullValue());
assertThat(info.getApplicationId(), notNullValue());
assertThat(info.getYarnApplicationState(), is(YarnApplicationState.FINISHED));
List<Resource> resources = ContainerLogUtils.queryContainerLogs(getYarnCluster(), info.getApplicationId());
assertThat(resources, notNullValue());
assertThat(resources.size(), greaterThan(2));
for (Resource res : resources) {