@Test
public void testRegisterMulitpleApplicationMasters() throws Exception {

  for (int testAppId = 0; testAppId < 3; testAppId++) {
    RegisterApplicationMasterResponse response =
        registerApplicationMaster(testAppId);
    Assert.assertNotNull(response);
    Assert
        .assertEquals(Integer.toString(testAppId), response.getQueue());
  }
}