@Test
public void testRegisterOneApplicationMaster() throws Exception {

  // The testAppId identifier is used as host name and the mock resource
  // manager return it as the queue name. Assert that we received the queue
  // name
  int testAppId = 1;
  RegisterApplicationMasterResponse response1 =
      registerApplicationMaster(testAppId);
  Assert.assertNotNull(response1);
  Assert.assertEquals(Integer.toString(testAppId), response1.getQueue());
}