{"action":"opened","issue":{"url":"https://api.github.com/repos/ksaua/remock/issues/8","labels_url":"https://api.github.com/repos/ksaua/remock/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ksaua/remock/issues/8/comments","events_url":"https://api.github.com/repos/ksaua/remock/issues/8/events","html_url":"https://github.com/ksaua/remock/issues/8","id":117474642,"number":8,"title":"@ReplaceWithInstance","user":{"login":"ksaua","id":91251,"avatar_url":"https://avatars.githubusercontent.com/u/91251?v=3","gravatar_id":"","url":"https://api.github.com/users/ksaua","html_url":"https://github.com/ksaua","followers_url":"https://api.github.com/users/ksaua/followers","following_url":"https://api.github.com/users/ksaua/following{/other_user}","gists_url":"https://api.github.com/users/ksaua/gists{/gist_id}","starred_url":"https://api.github.com/users/ksaua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksaua/subscriptions","organizations_url":"https://api.github.com/users/ksaua/orgs","repos_url":"https://api.github.com/users/ksaua/repos","events_url":"https://api.github.com/users/ksaua/events{/privacy}","received_events_url":"https://api.github.com/users/ksaua/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-17T23:21:32Z","updated_at":"2015-11-17T23:21:32Z","closed_at":null,"body":"Perhaps:\r\n\r\n    @ReplaceWithInstance\r\n    public static Clock myClock = new Clock();\r\n\r\nOr maybe:\r\n\r\n    @ReplaceWithInstance(AClockFactory.class)\r\n    public Clock myClock;\r\n\r\n    class AClockFactory implements RemockFactory<Clock> {\r\n        public Clock create() {\r\n            return new Clock();\r\n        }\r\n    }\r\n\r\n"}}