ListJobsCommand extends AbstractCommand { @Override public boolean valid(OptionSet options, GlacierUploaderOptionParser optionParser) { return !StringUtils.isBlank(options.valueOf(optionParser.vault)) && options.has(optionParser.listJobs); } ListJobsCommand(AmazonGlacier client, AmazonSQS sqs, AmazonSNS sns);  ListJobsCommand(final AmazonGlacier client, final AmazonSQS sqs, final AmazonSNS sns, final JobPrinter printer);  ListJobsCommand(final AmazonGlacier client, final AmazonSQS sqs, final AmazonSNS sns, final JobPrinter printer, final OutputStream out); @Override void exec(OptionSet options, GlacierUploaderOptionParser optionParser); @Override boolean valid(OptionSet options, GlacierUploaderOptionParser optionParser);  }
@Test public void execWithBlankVault() { final OptionSet options = optionParser.parse("--list-jobs", UUID.randomUUID().toString()); final ListJobsCommand command = new ListJobsCommand(client, sqs, sns); assertFalse(command.valid(options, optionParser)); }