@Test
public void testGetAppsInQueue() throws Exception {

  Application application_0 = new Application("user_0", resourceManager);
  application_0.submit();
  
  Application application_1 = new Application("user_0", resourceManager);
  application_1.submit();
  
  ResourceScheduler scheduler = resourceManager.getResourceScheduler();
  
  List<ApplicationAttemptId> appsInDefault = scheduler.getAppsInQueue("default");
  assertTrue(appsInDefault.contains(application_0.getApplicationAttemptId()));
  assertTrue(appsInDefault.contains(application_1.getApplicationAttemptId()));
  assertEquals(2, appsInDefault.size());
  
  Assert.assertNull(scheduler.getAppsInQueue("someotherqueue"));
}