@Test
public void testValidateTonyConfRequestedGpusUnderLimit() {

  Configuration conf = new Configuration();
  conf.setInt(TonyConfigurationKeys.getResourceKey(Constants.WORKER_JOB_NAME, Constants.GPUS), 1);
  conf.setInt(TonyConfigurationKeys.getInstancesKey(Constants.WORKER_JOB_NAME), 5);
  conf.setInt(TonyConfigurationKeys.getMaxTotalResourceKey(Constants.GPUS), 10);
  TonyClient.validateTonyConf(conf);
}