SshServer extends AbstractServer { public void setUser(String user) { this.user = user; this.endpointConfiguration.setUser(user); } SshServer();  SshServer(SshEndpointConfiguration endpointConfiguration); @Override AbstractPollableEndpointConfiguration getEndpointConfiguration(); int getPort(); void setPort(int port); String getUser(); void setUser(String user); String getPassword(); void setPassword(String password); String getAllowedKeyPath(); void setAllowedKeyPath(String allowedKeyPath); String getHostKeyPath(); void setHostKeyPath(String hostKeyPath); String getUserHomePath(); void setUserHomePath(String userHomePath); SshMessageConverter getMessageConverter(); void setMessageConverter(SshMessageConverter messageConverter);  }
@Test(expectedExceptions = CitrusRuntimeException.class,expectedExceptionsMessageRegExp = ".*password.*allowed-key-path.*") public void noPasswordOrKey() { server.setUser("roland"); server.start(); }