@Test
public void testGetAgentPackageParallelCommandsLimit() throws Exception {

  final Properties ambariProperties = new Properties();
  final Configuration configuration = new Configuration(ambariProperties);
  Assert.assertEquals(100, configuration.getAgentPackageParallelCommandsLimit());
  ambariProperties.setProperty(Configuration.AGENT_PACKAGE_PARALLEL_COMMANDS_LIMIT.getKey(), "5");
  Assert.assertEquals(5, configuration.getAgentPackageParallelCommandsLimit());
  ambariProperties.setProperty(Configuration.AGENT_PACKAGE_PARALLEL_COMMANDS_LIMIT.getKey(), "0");
  Assert.assertEquals(1, configuration.getAgentPackageParallelCommandsLimit());
}