### Question:
AtomixAgent { static Namespace parseArgs(String[] args, List<String> unknown) { ArgumentParser parser = createParser(); Namespace namespace = null; try { namespace = parser.parseKnownArgs(args, unknown); } catch (ArgumentParserException e) { parser.handleError(e); System.exit(1); } return namespace; }  static void main(String[] args);  }### Answer:
@Test public void testParseArgs() { List<String> unknown = new ArrayList<>(); Namespace namespace = AtomixAgent.parseArgs(new String[]{"-c", "some.conf", "--a.b.c", "d", "--b.c.d=a"}, unknown); assertEquals("some.conf", namespace.getList("config").get(0).toString()); assertEquals(3, unknown.size()); Namespace extraArgs = AtomixAgent.parseUnknown(unknown); assertEquals("d", extraArgs.getString("a.b.c")); assertEquals("a", extraArgs.getString("b.c.d")); }