@Test (expected = YarnException.class)
public void testNonExistingQueue() throws Exception {

  ApplicationId applicationId = getApplicationId(1);
  UserGroupInformation aclUGI = UserGroupInformation.getCurrentUser();
  QueueACLsManager queueAclsManager = getQueueAclManager();
  ApplicationACLsManager appAclsManager = getAppAclManager();
  ClientRMService rmService =
      createClientRMServiceForMoveApplicationRequest(applicationId,
          aclUGI.getShortUserName(), appAclsManager, queueAclsManager);
  MoveApplicationAcrossQueuesRequest moveAppRequest =
      MoveApplicationAcrossQueuesRequest.newInstance(applicationId,
          "unknown_queue");
  rmService.moveApplicationAcrossQueues(moveAppRequest);
}