@Test
public void testNoCreate() throws Exception {

  StringBuffer sb = new StringBuffer();
  sb.append("<queuePlacementPolicy>");
  sb.append("  <rule name='specified' />");
  sb.append("  <rule name='user' create=\"false\" />");
  sb.append("  <rule name='default' />");
  sb.append("</queuePlacementPolicy>");
  
  configuredQueues.get(FSQueueType.LEAF).add("root.someuser");
  QueuePlacementPolicy policy = parse(sb.toString());
  assertEquals("root.specifiedq", policy.assignAppToQueue("specifiedq", "someuser"));
  assertEquals("root.someuser", policy.assignAppToQueue("default", "someuser"));
  assertEquals("root.specifiedq", policy.assignAppToQueue("specifiedq", "otheruser"));
  assertEquals("root.default", policy.assignAppToQueue("default", "otheruser"));
}