public class TestNoRestrictionsCmdLineOptionValidator extends TestCase {
public void testValidate() {
// Test pass for null option instance.
assertEquals(Result.Grade.PASS,
new NoRestrictionsCmdLineOptionValidator().validate(null)
.getGrade());
// Test pass for not null option instance.
CmdLineOptionInstance instance = createOptionInstance(
createSimpleOption("test", false), "bogus");
assertEquals(Result.Grade.PASS,
new NoRestrictionsCmdLineOptionValidator().validate(instance)
.getGrade());
}