### Question:
GrepCommand extends AnnotatedCommand { public boolean isTrimEnd() { return trimEnd; }  @Argument(index = 0, argName = "pattern", required = true) @Description("Pattern") void setOptionName(String pattern); @Option(shortName = "e", longName = "regex", flag = true) @Description("Enable regular expression to match") void setRegEx(boolean regEx); @Option(shortName = "i", longName = "ignore-case", flag = true) @Description("Perform case insensitive matching. By default, grep is case sensitive.") void setIgnoreCase(boolean ignoreCase); @Option(shortName = "v", longName = "invert-match", flag = true) @Description("Select non-matching lines") void setInvertMatch(boolean invertMatch); @Option(shortName = "n", longName = "line-number", flag = true) @Description("Print line number with output lines") void setShowLineNumber(boolean showLineNumber); @Option(longName = "trim-end", flag = false) @DefaultValue("true") @Description("Remove whitespaces at the end of the line, default value true") void setTrimEnd(boolean trimEnd); @Option(shortName = "B", longName = "before-context") @Description("Print NUM lines of leading context)") void setBeforeLines(int beforeLines); @Option(shortName = "A", longName = "after-context") @Description("Print NUM lines of trailing context)") void setAfterLines(int afterLines); @Option(shortName = "C", longName = "context") @Description("Print NUM lines of output context)") void setContext(int context); @Option(shortName = "m", longName = "max-count") @Description("stop after NUM selected lines)") void setMaxCount(int maxCount); String getPattern(); void setPattern(String pattern); boolean isIgnoreCase(); boolean isInvertMatch(); boolean isRegEx(); boolean isShowLineNumber(); boolean isTrimEnd(); int getBeforeLines(); int getAfterLines(); int getContext(); int getMaxCount(); @Override void process(CommandProcess process);  }### Answer:
@Test public void test3() { List<String> args = Arrays.asList("--trim-end=false", "ppp"); GrepCommand grepCommand = new GrepCommand(); CommandLine commandLine = cli.parse(args, true); try { CLIConfigurator.inject(commandLine, grepCommand); } catch (Throwable e) { throw new RuntimeException(e); } Assert.assertFalse(grepCommand.isTrimEnd()); }