{"action":"created","issue":{"url":"https://api.github.com/repos/yegor256/takes/issues/426","labels_url":"https://api.github.com/repos/yegor256/takes/issues/426/labels{/name}","comments_url":"https://api.github.com/repos/yegor256/takes/issues/426/comments","events_url":"https://api.github.com/repos/yegor256/takes/issues/426/events","html_url":"https://github.com/yegor256/takes/pull/426","id":114493581,"number":426,"title":"Replacing Mockito statements with own fake socket object","user":{"login":"prondzyn","id":5822647,"avatar_url":"https://avatars.githubusercontent.com/u/5822647?v=3","gravatar_id":"","url":"https://api.github.com/users/prondzyn","html_url":"https://github.com/prondzyn","followers_url":"https://api.github.com/users/prondzyn/followers","following_url":"https://api.github.com/users/prondzyn/following{/other_user}","gists_url":"https://api.github.com/users/prondzyn/gists{/gist_id}","starred_url":"https://api.github.com/users/prondzyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prondzyn/subscriptions","organizations_url":"https://api.github.com/users/prondzyn/orgs","repos_url":"https://api.github.com/users/prondzyn/repos","events_url":"https://api.github.com/users/prondzyn/events{/privacy}","received_events_url":"https://api.github.com/users/prondzyn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yegor256/takes/labels/15%20mins","name":"15 mins","color":"eb6421"},{"url":"https://api.github.com/repos/yegor256/takes/labels/@dmzaytsev","name":"@dmzaytsev","color":"009801"},{"url":"https://api.github.com/repos/yegor256/takes/labels/CR","name":"CR","color":"bfd4f3"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-01T21:16:35Z","updated_at":"2015-11-03T04:54:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yegor256/takes/pulls/426","html_url":"https://github.com/yegor256/takes/pull/426","diff_url":"https://github.com/yegor256/takes/pull/426.diff","patch_url":"https://github.com/yegor256/takes/pull/426.patch"},"body":"#417 I replaced Mockito statements in [BkReuseTest.java](https://github.com/prondzyn/takes/blob/417/src/test/java/org/takes/http/BkReuseTest.java) with [MkSocket](https://github.com/prondzyn/takes/blob/417/src/main/java/org/takes/mock/MkSocket.java) according to [Built-in Fake Objects](http://www.yegor256.com/2014/09/23/built-in-fake-objects.html)."},"comment":{"url":"https://api.github.com/repos/yegor256/takes/issues/comments/153237934","html_url":"https://github.com/yegor256/takes/pull/426#issuecomment-153237934","issue_url":"https://api.github.com/repos/yegor256/takes/issues/426","id":153237934,"user":{"login":"yegor256","id":526301,"avatar_url":"https://avatars.githubusercontent.com/u/526301?v=3","gravatar_id":"","url":"https://api.github.com/users/yegor256","html_url":"https://github.com/yegor256","followers_url":"https://api.github.com/users/yegor256/followers","following_url":"https://api.github.com/users/yegor256/following{/other_user}","gists_url":"https://api.github.com/users/yegor256/gists{/gist_id}","starred_url":"https://api.github.com/users/yegor256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegor256/subscriptions","organizations_url":"https://api.github.com/users/yegor256/orgs","repos_url":"https://api.github.com/users/yegor256/repos","events_url":"https://api.github.com/users/yegor256/events{/privacy}","received_events_url":"https://api.github.com/users/yegor256/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T04:54:14Z","updated_at":"2015-11-03T04:54:14Z","body":"@prondzyn oops, this looks rather bad. Why creating this mocking version of `Socket` when we can just start a real server using `ServerSocket`? Or using this approach: http://www.yegor256.com/2014/04/18/jcabi-http-server-mocking.html"}}