@Test(expected=IllegalArgumentException.class)
public void testAllocationIncrementInvalidUnit() throws Exception {

  Configuration conf = new Configuration();
  conf.set(YarnConfiguration.RESOURCE_TYPES + "." +
      ResourceInformation.MEMORY_MB.getName() +
      FairSchedulerConfiguration.INCREMENT_ALLOCATION, "1 Xi");
  new FairSchedulerConfiguration(conf).getIncrementAllocation();
}