### Question:
AppParameters { public static AppParameters parser(String[] args) throws CmdLineException { AppParameters applicationArgs = new AppParameters(); CmdLineParser parser = new CmdLineParser(applicationArgs); parser.parseArgument(args); return applicationArgs; } private  AppParameters(); static Builder newBuilder(); static AppParameters parser(String[] args); static void getHelp(OutputStream out); String getConfigPath(); boolean isAutoTcpClient(); boolean isOkHttpClient(); boolean isHelp();  }### Answer:
@Test public void testParser() throws Exception { String[] args = new String[] { AppParameters.Keys.OKHTTP_CLIENT.parameter() }; AppParameters parameters = AppParameters.parser(args); assertTrue(parameters.isOkHttpClient()); args = new String[] { AppParameters.Keys.CONFIG_PATH.parameter(), "test" }; parameters = AppParameters.parser(args); assertEquals("test", parameters.getConfigPath()); args = new String[] { AppParameters.Keys.AUTO_TCP_CLIENT.parameter() }; parameters = AppParameters.parser(args); assertTrue(parameters.isAutoTcpClient()); args = new String[] { AppParameters.Keys.HELP.parameter(), }; parameters = AppParameters.parser(args); assertTrue(parameters.isHelp()); }