@Test
public void testRunWithMissingKey() throws Exception {

    Server server = new Server(opts, userStore, communications);
    CommandLine.Option option = createNiceMock(CommandLine.Option.class);
    expect(opts.findByLongOption("server-key")).andReturn(option);
    option.getValue();
    expectLastCall().andReturn("nothere.pem");
    replay(opts, userStore, communications, option);
    assertEquals(1, server.run());
}