Code is completely tested for socket connection where response is received based on request parameter