@Test
public void testQueueMaxAllocations() {

  converter = builder.build();
  converter.convertQueueHierarchy(rootQueue);
  // root.admins vcores + mb
  assertEquals("root.admins max vcores", 3,
      csConfig.getInt(PREFIX + "root.admins.maximum-allocation-vcores", -1));
  assertEquals("root.admins max memory", 4096,
      csConfig.getInt(PREFIX + "root.admins.maximum-allocation-mb", -1));
  // root.users.john max vcores + mb
  assertEquals("root.users.john max vcores", 2,
      csConfig.getInt(PREFIX + "root.users.john.maximum-allocation-vcores",
          -1));
  assertEquals("root.users.john max memory", 8192,
      csConfig.getInt(PREFIX + "root.users.john.maximum-allocation-mb", -1));
  Set<String> remaining = Sets.difference(ALL_QUEUES,
      Sets.newHashSet("root.admins", "root.users.john"));
  assertNoValueForQueues(remaining, ".maximum-allocation-vcores", csConfig);
  assertNoValueForQueues(remaining, ".maximum-allocation-mb", csConfig);
}