}
private SocketServerConnection createFakeConnection(
final FakeClientServerInstance serverInstance)
throws CommunicationException, ConnectionException {
SocketServerConnection connection = new SocketServerConnection(new SocketServerInstanceFactory() {
@Override
public SocketServerInstance getServerInstance(HostInfo info)
throws CommunicationException, IOException {
return serverInstance;