public void should_return_expected_response_without_port() throws Exception {
final SocketServer server = jsonSocketServer(file("src/test/resources/base.json"));
running(server, new Runnable() {
@Override
public void run() throws Exception {
MocoSocketHelper helper = new MocoSocketHelper(local(), server.port());
helper.connect();
assertThat(helper.send("foo", 3), is("bar"));
helper.close();
}
});
}