junit test servercommunication