Server server = FACTORY.createServer(1099, LANG);
Client client = FACTORY.createClient(null, "test");
//Connect client to server
try {
server.connect(null, client);
System.out.println("Connect client to server");
}
catch (RemoteException ex) {
fail("RemoteException was not expected");
}