@Test
public void testReservationSystemNotSupported() {

  converter = builder.build();
  expectedException.expect(UnsupportedPropertyException.class);
  expectedException.expectMessage("maxCapacity");
  Mockito.doThrow(new UnsupportedPropertyException("maxCapacity"))
    .when(ruleHandler).handleMaxChildCapacity();
  yarnConfig.setBoolean(YarnConfiguration.RM_RESERVATION_SYSTEM_ENABLE,
      true);
  converter.convertQueueHierarchy(rootQueue);
}