### Question:
AgentArgumentsConfigurationSource extends AbstractConfigurationSource { public static AgentArgumentsConfigurationSource parse(String agentAgruments) { final Map<String, String> configs = new HashMap<>(); for (String config : StringUtils.split(agentAgruments, ';')) { final int indexOfEquals = config.indexOf('='); if (indexOfEquals < 1) { throw new IllegalArgumentException(String.format("%s is not a '=' separated key/value pair", config)); } configs.put(config.substring(0, indexOfEquals).trim(), config.substring(indexOfEquals + 1).trim()); } return new AgentArgumentsConfigurationSource(configs); } private  AgentArgumentsConfigurationSource(Map<String, String> config); static AgentArgumentsConfigurationSource parse(String agentAgruments); @Override @Nullable String getValue(String key); @Override String getName();  }### Answer:
@Test void testParse() { assertThat(AgentArgumentsConfigurationSource.parse("foo=bar").getValue("foo")).isEqualTo("bar"); assertThat(AgentArgumentsConfigurationSource.parse("foo = bar ; baz =qux, quux ").getConfig()) .containsEntry("foo", "bar") .containsEntry("baz", "qux, quux"); assertThat(AgentArgumentsConfigurationSource.parse("foo = bar ; baz =qux=quux,foo=bar ").getConfig()) .containsEntry("foo", "bar") .containsEntry("baz", "qux=quux,foo=bar"); assertThatThrownBy(() -> AgentArgumentsConfigurationSource.parse("foo")).isInstanceOf(IllegalArgumentException.class); }