public void testCaseActionNotSupported() {
CmdLineOptionInstance specifiedAction = createOptionInstance(
ACTION_OPTION, "NotSupportedActionName");
Set<CmdLineOptionInstance> specifiedOptions = newHashSet(specifiedAction);
CmdLineArgs args = new CmdLineArgs(SUPPORTED_ACTIONS, SUPPORTED_OPTIONS,
specifiedOptions);
// Verify that CmdLineAction is null since it was not able to be located
// in set of supported actions.
assertNull(args.getSpecifiedAction());
// Verify that if did find the action option.
assertEquals(specifiedAction.getOption(), args.getActionOptionInst()
.getOption());
// Verify that if found the specified action even though it is not
// supported.
assertEquals(newArrayList("NotSupportedActionName"), args
.getActionOptionInst().getValues());
}