@Test
public void exec() throws Exception {

    final InitiateJobRequest jobRequest = createMock(InitiateJobRequest.class);
    final InitiateJobResult jobResult = new InitiateJobResult();
    jobResult.setJobId(UUID.randomUUID().toString());
    expect(client.initiateJob(isA(InitiateJobRequest.class))).andReturn(jobResult).times(1);
    replay(client);
    final OptionSet options = optionParser.parse("--vault", "vaultName", "--list-inventory");
    final RequestArchivesListCommand command = new RequestArchivesListCommand(client, sqs, sns);
    assertTrue(command.valid(options, optionParser));
    command.exec(options, optionParser);
    verify(client);
}