@Test
public void testParameterParsing() throws IOException {

  AgentProviderService aps = createAgentProviderService(new Configuration());
  AggregateConf aggConf = new AggregateConf();
  ConfTreeOperations treeOps = aggConf.getAppConfOperations();
  treeOps.getGlobalOptions().put(AgentKeys.SYSTEM_CONFIGS, "core-site,yarn-site, core-site ");
  List<String> configs = aps.getSystemConfigurationsRequested(treeOps);
  Assert.assertEquals(2, configs.size());
  Assert.assertTrue(configs.contains("core-site"));
  Assert.assertFalse(configs.contains("bore-site"));
}