void () { doTest(true); final CommandLineFile commandLineFile = (CommandLineFile)myFile; Assert.assertEquals("Bad argument value", "spam and eggs", commandLineFile.getArguments().iterator().next().getValueNoQuotes()); final CommandLineArgument optionArgument = commandLineFile.getOptions().iterator().next().findArgument(); Assert.assertNotNull("No option argument found", optionArgument); Assert.assertEquals("Bad option argument value", "ketchup", optionArgument.getValueNoQuotes()); }