{"action":"created","issue":{"url":"https://api.github.com/repos/mockito/mockito/issues/351","repository_url":"https://api.github.com/repos/mockito/mockito","labels_url":"https://api.github.com/repos/mockito/mockito/issues/351/labels{/name}","comments_url":"https://api.github.com/repos/mockito/mockito/issues/351/comments","events_url":"https://api.github.com/repos/mockito/mockito/issues/351/events","html_url":"https://github.com/mockito/mockito/issues/351","id":131685163,"number":351,"title":"A question about mock thenCallRealMethod()","user":{"login":"1054522381","id":14796516,"avatar_url":"https://avatars.githubusercontent.com/u/14796516?v=3","gravatar_id":"","url":"https://api.github.com/users/1054522381","html_url":"https://github.com/1054522381","followers_url":"https://api.github.com/users/1054522381/followers","following_url":"https://api.github.com/users/1054522381/following{/other_user}","gists_url":"https://api.github.com/users/1054522381/gists{/gist_id}","starred_url":"https://api.github.com/users/1054522381/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1054522381/subscriptions","organizations_url":"https://api.github.com/users/1054522381/orgs","repos_url":"https://api.github.com/users/1054522381/repos","events_url":"https://api.github.com/users/1054522381/events{/privacy}","received_events_url":"https://api.github.com/users/1054522381/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mockito/mockito/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-05T16:15:45Z","updated_at":"2016-03-09T12:24:34Z","closed_at":null,"body":"code as:\r\n\r\n```java\r\nList list1 = Mockito.mock(ArrayList.class);\r\nlist1.add(1);\r\nMockito.when(list1.isEmpty()).thenCallRealMethod();\r\nSystem.out.println(\"isEmpty:\" + list1.isEmpty());\r\n```\r\n\r\nquestion:why the list1 is empty? why the real method has not been invoked?"},"comment":{"url":"https://api.github.com/repos/mockito/mockito/issues/comments/194272514","html_url":"https://github.com/mockito/mockito/issues/351#issuecomment-194272514","issue_url":"https://api.github.com/repos/mockito/mockito/issues/351","id":194272514,"user":{"login":"bric3","id":803621,"avatar_url":"https://avatars.githubusercontent.com/u/803621?v=3","gravatar_id":"","url":"https://api.github.com/users/bric3","html_url":"https://github.com/bric3","followers_url":"https://api.github.com/users/bric3/followers","following_url":"https://api.github.com/users/bric3/following{/other_user}","gists_url":"https://api.github.com/users/bric3/gists{/gist_id}","starred_url":"https://api.github.com/users/bric3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bric3/subscriptions","organizations_url":"https://api.github.com/users/bric3/orgs","repos_url":"https://api.github.com/users/bric3/repos","events_url":"https://api.github.com/users/bric3/events{/privacy}","received_events_url":"https://api.github.com/users/bric3/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T12:24:33Z","updated_at":"2016-03-09T12:24:33Z","body":"@thekingnothing thanks for answering\r\n@1054522381 Please use the mailing list or SO for questions ;)"}}