### Question:
AppclientCommandArguments { public static AppclientCommandArguments newInstance(List<String> appclientCommandArgs) throws UserError { AppclientCommandArguments result = new AppclientCommandArguments(); result.processAppclientArgs(appclientCommandArgs); return result; } private  AppclientCommandArguments(); static AppclientCommandArguments newInstance(List<String> appclientCommandArgs); boolean isTextauth(); boolean isNoappinvoke(); boolean isUsage(); boolean isHelp(); String getUser(); char[] getPassword(); String getName(); String getTargetServer(); String getConfigFilePath(); String getMainclass(); List<String> getAppArgs();  }### Answer:
@Test public void disallowMainclassAndName() throws Exception { try { AppclientCommandArguments.newInstance( Arrays.asList("-mainclass","x.y.Main","-name","some-display-name")); fail("did not detect incorrect spec of mainclass and name"); } catch (UserError e) { } }