{"action":"opened","issue":{"url":"https://api.github.com/repos/henri-tremblay/mytest/issues/140","labels_url":"https://api.github.com/repos/henri-tremblay/mytest/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/henri-tremblay/mytest/issues/140/comments","events_url":"https://api.github.com/repos/henri-tremblay/mytest/issues/140/events","html_url":"https://github.com/henri-tremblay/mytest/issues/140","id":82989834,"number":140,"title":"Can't delegate to a protected method","user":{"login":"henri-tremblay","id":1216819,"avatar_url":"https://avatars.githubusercontent.com/u/1216819?v=3","gravatar_id":"","url":"https://api.github.com/users/henri-tremblay","html_url":"https://github.com/henri-tremblay","followers_url":"https://api.github.com/users/henri-tremblay/followers","following_url":"https://api.github.com/users/henri-tremblay/following{/other_user}","gists_url":"https://api.github.com/users/henri-tremblay/gists{/gist_id}","starred_url":"https://api.github.com/users/henri-tremblay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henri-tremblay/subscriptions","organizations_url":"https://api.github.com/users/henri-tremblay/orgs","repos_url":"https://api.github.com/users/henri-tremblay/repos","events_url":"https://api.github.com/users/henri-tremblay/events{/privacy}","received_events_url":"https://api.github.com/users/henri-tremblay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/henri-tremblay/mytest/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/henri-tremblay/mytest/labels/core","name":"core","color":"f7c6c7"},{"url":"https://api.github.com/repos/henri-tremblay/mytest/labels/fixed","name":"fixed","color":"c7def8"},{"url":"https://api.github.com/repos/henri-tremblay/mytest/labels/major","name":"major","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"henri-tremblay","id":1216819,"avatar_url":"https://avatars.githubusercontent.com/u/1216819?v=3","gravatar_id":"","url":"https://api.github.com/users/henri-tremblay","html_url":"https://github.com/henri-tremblay","followers_url":"https://api.github.com/users/henri-tremblay/followers","following_url":"https://api.github.com/users/henri-tremblay/following{/other_user}","gists_url":"https://api.github.com/users/henri-tremblay/gists{/gist_id}","starred_url":"https://api.github.com/users/henri-tremblay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henri-tremblay/subscriptions","organizations_url":"https://api.github.com/users/henri-tremblay/orgs","repos_url":"https://api.github.com/users/henri-tremblay/repos","events_url":"https://api.github.com/users/henri-tremblay/events{/privacy}","received_events_url":"https://api.github.com/users/henri-tremblay/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/henri-tremblay/mytest/milestones/5","html_url":"https://github.com/henri-tremblay/mytest/milestones/2.5.2","labels_url":"https://api.github.com/repos/henri-tremblay/mytest/milestones/5/labels","id":1139054,"number":5,"title":"2.5.2","description":"EasyMock 2.5.2","creator":{"login":"henri-tremblay","id":1216819,"avatar_url":"https://avatars.githubusercontent.com/u/1216819?v=3","gravatar_id":"","url":"https://api.github.com/users/henri-tremblay","html_url":"https://github.com/henri-tremblay","followers_url":"https://api.github.com/users/henri-tremblay/followers","following_url":"https://api.github.com/users/henri-tremblay/following{/other_user}","gists_url":"https://api.github.com/users/henri-tremblay/gists{/gist_id}","starred_url":"https://api.github.com/users/henri-tremblay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henri-tremblay/subscriptions","organizations_url":"https://api.github.com/users/henri-tremblay/orgs","repos_url":"https://api.github.com/users/henri-tremblay/repos","events_url":"https://api.github.com/users/henri-tremblay/events{/privacy}","received_events_url":"https://api.github.com/users/henri-tremblay/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":19,"state":"closed","created_at":"2015-05-29T01:57:43Z","updated_at":"2015-05-31T03:53:14Z","due_on":"2009-09-12T04:00:00Z","closed_at":"2015-05-29T01:57:43Z"},"comments":0,"created_at":"2015-05-31T03:53:14Z","updated_at":"2015-05-31T03:53:14Z","closed_at":null,"body":"*Migrated from:* CodeHaus issue EASYMOCK-28\n*Original reporter:* Henri Tremblay\n\n---------------------------------------------------------\nIf a protected method is mocked and then the result is delegated to an implementation, the call fails.\n\nSomething like below in Result.DelegatingAnswer should do the trick\n\n          Method m = invocation.getMethod();\n          m.setAccessible(true);\n          return m.invoke(value, invocation.getArguments());\n"}}