public void testLanguage() throws Exception {
client = SshClient.setUpDefaultClient();
client.setSessionFactory(new SessionFactory() {
@Override
protected AbstractSession createSession(IoSession ioSession) throws Exception {
return new ClientSessionImpl(client, ioSession) {
@Override
protected String[] createProposal(String hostKeyTypes) {
String[] proposal = super.createProposal(hostKeyTypes);
proposal[SshConstants.PROPOSAL_LANG_CTOS] = "en-US";
proposal[SshConstants.PROPOSAL_LANG_STOC] = "en-US";