@Test
public void testReservationSystemNotSupported() throws Exception {

  expectedException.expect(UnsupportedPropertyException.class);
  expectedException.expectMessage("maxCapacity");
  Mockito.doThrow(new UnsupportedPropertyException("maxCapacity"))
    .when(ruleHandler).handleMaxChildCapacity();
  config.setBoolean(YarnConfiguration.RM_RESERVATION_SYSTEM_ENABLE, true);
  converter.convert(config);
}