{"action":"created","comment":{"url":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls/comments/35704422","id":35704422,"diff_hunk":"@@ -200,36 +225,34 @@\n     expectedAttributes.put(CATEGORIES_VIEWED, NONE);\n     expectedAttributes.put(LAST_VIEWED_CATEGORY, NONE);\n \n-    verifyStatic();\n-    KahunaAnalytics.getUserAttributes();\n-    verifyStatic();\n-    KahunaAnalytics.setUserAttributes(expectedAttributes);\n-    verifyNoMoreInteractions(KahunaAnalytics.class);\n+    Assert.assertEquals(Kahuna.getInstance().getUserAttributes(), expectedAttributes);\n+    verify(kahuna, times(2)).getUserAttributes();\n+    verify(kahuna).setUserAttributes(expectedAttributes);\n+    verifyNoMoreInteractions(kahuna);\n   }\n \n   @Test public void trackViewedProductCategoryWithCategory() {\n     Map<String, String> map = new LinkedHashMap<>();\n-    PowerMockito.when(KahunaAnalytics.getUserAttributes()).thenReturn(map);\n+    PowerMockito.when(Kahuna.getInstance().getUserAttributes()).thenReturn(map);\n \n     integration.trackViewedProductCategory(new TrackPayloadBuilder().event(VIEWED_PRODUCT_CATEGORY)\n         .properties(new Properties().putCategory(\"foo\"))\n-        .build());\n+            .build());","path":"analytics-integrations/kahuna/src/test/java/com/segment/analytics/internal/integrations/KahunaTest.java","position":242,"original_position":242,"commit_id":"8c5dfe055575d422b2a9be9a7075782c04deeab9","original_commit_id":"8c5dfe055575d422b2a9be9a7075782c04deeab9","user":{"login":"TorreyKahuna","id":3451408,"avatar_url":"https://avatars.githubusercontent.com/u/3451408?v=3","gravatar_id":"","url":"https://api.github.com/users/TorreyKahuna","html_url":"https://github.com/TorreyKahuna","followers_url":"https://api.github.com/users/TorreyKahuna/followers","following_url":"https://api.github.com/users/TorreyKahuna/following{/other_user}","gists_url":"https://api.github.com/users/TorreyKahuna/gists{/gist_id}","starred_url":"https://api.github.com/users/TorreyKahuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TorreyKahuna/subscriptions","organizations_url":"https://api.github.com/users/TorreyKahuna/orgs","repos_url":"https://api.github.com/users/TorreyKahuna/repos","events_url":"https://api.github.com/users/TorreyKahuna/events{/privacy}","received_events_url":"https://api.github.com/users/TorreyKahuna/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2015-07-28T21:36:33Z","updated_at":"2015-07-28T21:36:33Z","html_url":"https://github.com/TorreyKahuna/analytics-android/pull/1#discussion_r35704422","pull_request_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls/comments/35704422"},"html":{"href":"https://github.com/TorreyKahuna/analytics-android/pull/1#discussion_r35704422"},"pull_request":{"href":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls/1","id":41048966,"html_url":"https://github.com/TorreyKahuna/analytics-android/pull/1","diff_url":"https://github.com/TorreyKahuna/analytics-android/pull/1.diff","patch_url":"https://github.com/TorreyKahuna/analytics-android/pull/1.patch","issue_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/issues/1","number":1,"state":"open","locked":false,"title":"Updated Kahuna Integration to 2.0.3","user":{"login":"TorreyKahuna","id":3451408,"avatar_url":"https://avatars.githubusercontent.com/u/3451408?v=3","gravatar_id":"","url":"https://api.github.com/users/TorreyKahuna","html_url":"https://github.com/TorreyKahuna","followers_url":"https://api.github.com/users/TorreyKahuna/followers","following_url":"https://api.github.com/users/TorreyKahuna/following{/other_user}","gists_url":"https://api.github.com/users/TorreyKahuna/gists{/gist_id}","starred_url":"https://api.github.com/users/TorreyKahuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TorreyKahuna/subscriptions","organizations_url":"https://api.github.com/users/TorreyKahuna/orgs","repos_url":"https://api.github.com/users/TorreyKahuna/repos","events_url":"https://api.github.com/users/TorreyKahuna/events{/privacy}","received_events_url":"https://api.github.com/users/TorreyKahuna/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-28T19:15:20Z","updated_at":"2015-07-28T21:36:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d971b21d2acaf087c217c4f70d1ea856f723ce3a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls/1/commits","review_comments_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls/1/comments","review_comment_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/issues/1/comments","statuses_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/statuses/8c5dfe055575d422b2a9be9a7075782c04deeab9","head":{"label":"TorreyKahuna:update-kahuna-sdk-2.0.3","ref":"update-kahuna-sdk-2.0.3","sha":"8c5dfe055575d422b2a9be9a7075782c04deeab9","user":{"login":"TorreyKahuna","id":3451408,"avatar_url":"https://avatars.githubusercontent.com/u/3451408?v=3","gravatar_id":"","url":"https://api.github.com/users/TorreyKahuna","html_url":"https://github.com/TorreyKahuna","followers_url":"https://api.github.com/users/TorreyKahuna/followers","following_url":"https://api.github.com/users/TorreyKahuna/following{/other_user}","gists_url":"https://api.github.com/users/TorreyKahuna/gists{/gist_id}","starred_url":"https://api.github.com/users/TorreyKahuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TorreyKahuna/subscriptions","organizations_url":"https://api.github.com/users/TorreyKahuna/orgs","repos_url":"https://api.github.com/users/TorreyKahuna/repos","events_url":"https://api.github.com/users/TorreyKahuna/events{/privacy}","received_events_url":"https://api.github.com/users/TorreyKahuna/received_events","type":"User","site_admin":false},"repo":{"id":39409235,"name":"analytics-android","full_name":"TorreyKahuna/analytics-android","owner":{"login":"TorreyKahuna","id":3451408,"avatar_url":"https://avatars.githubusercontent.com/u/3451408?v=3","gravatar_id":"","url":"https://api.github.com/users/TorreyKahuna","html_url":"https://github.com/TorreyKahuna","followers_url":"https://api.github.com/users/TorreyKahuna/followers","following_url":"https://api.github.com/users/TorreyKahuna/following{/other_user}","gists_url":"https://api.github.com/users/TorreyKahuna/gists{/gist_id}","starred_url":"https://api.github.com/users/TorreyKahuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TorreyKahuna/subscriptions","organizations_url":"https://api.github.com/users/TorreyKahuna/orgs","repos_url":"https://api.github.com/users/TorreyKahuna/repos","events_url":"https://api.github.com/users/TorreyKahuna/events{/privacy}","received_events_url":"https://api.github.com/users/TorreyKahuna/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TorreyKahuna/analytics-android","description":"The hassle-free way to add analytics to your Android app.","fork":true,"url":"https://api.github.com/repos/TorreyKahuna/analytics-android","forks_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/forks","keys_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/teams","hooks_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/hooks","issue_events_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/issues/events{/number}","events_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/events","assignees_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/assignees{/user}","branches_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/branches{/branch}","tags_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/tags","blobs_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/statuses/{sha}","languages_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/languages","stargazers_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/stargazers","contributors_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/contributors","subscribers_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/subscribers","subscription_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/subscription","commits_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/contents/{+path}","compare_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/merges","archive_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/downloads","issues_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/issues{/number}","pulls_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls{/number}","milestones_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/milestones{/number}","notifications_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/labels{/name}","releases_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/releases{/id}","created_at":"2015-07-20T21:26:02Z","updated_at":"2015-07-20T21:26:03Z","pushed_at":"2015-07-28T19:22:34Z","git_url":"git://github.com/TorreyKahuna/analytics-android.git","ssh_url":"git@github.com:TorreyKahuna/analytics-android.git","clone_url":"https://github.com/TorreyKahuna/analytics-android.git","svn_url":"https://github.com/TorreyKahuna/analytics-android","homepage":"https://segment.com/docs/libraries/android/","size":36478,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"TorreyKahuna:master","ref":"master","sha":"cffdc30b9c26a8938ae826028edcaf6a1603f634","user":{"login":"TorreyKahuna","id":3451408,"avatar_url":"https://avatars.githubusercontent.com/u/3451408?v=3","gravatar_id":"","url":"https://api.github.com/users/TorreyKahuna","html_url":"https://github.com/TorreyKahuna","followers_url":"https://api.github.com/users/TorreyKahuna/followers","following_url":"https://api.github.com/users/TorreyKahuna/following{/other_user}","gists_url":"https://api.github.com/users/TorreyKahuna/gists{/gist_id}","starred_url":"https://api.github.com/users/TorreyKahuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TorreyKahuna/subscriptions","organizations_url":"https://api.github.com/users/TorreyKahuna/orgs","repos_url":"https://api.github.com/users/TorreyKahuna/repos","events_url":"https://api.github.com/users/TorreyKahuna/events{/privacy}","received_events_url":"https://api.github.com/users/TorreyKahuna/received_events","type":"User","site_admin":false},"repo":{"id":39409235,"name":"analytics-android","full_name":"TorreyKahuna/analytics-android","owner":{"login":"TorreyKahuna","id":3451408,"avatar_url":"https://avatars.githubusercontent.com/u/3451408?v=3","gravatar_id":"","url":"https://api.github.com/users/TorreyKahuna","html_url":"https://github.com/TorreyKahuna","followers_url":"https://api.github.com/users/TorreyKahuna/followers","following_url":"https://api.github.com/users/TorreyKahuna/following{/other_user}","gists_url":"https://api.github.com/users/TorreyKahuna/gists{/gist_id}","starred_url":"https://api.github.com/users/TorreyKahuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TorreyKahuna/subscriptions","organizations_url":"https://api.github.com/users/TorreyKahuna/orgs","repos_url":"https://api.github.com/users/TorreyKahuna/repos","events_url":"https://api.github.com/users/TorreyKahuna/events{/privacy}","received_events_url":"https://api.github.com/users/TorreyKahuna/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TorreyKahuna/analytics-android","description":"The hassle-free way to add analytics to your Android app.","fork":true,"url":"https://api.github.com/repos/TorreyKahuna/analytics-android","forks_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/forks","keys_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/teams","hooks_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/hooks","issue_events_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/issues/events{/number}","events_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/events","assignees_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/assignees{/user}","branches_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/branches{/branch}","tags_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/tags","blobs_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/statuses/{sha}","languages_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/languages","stargazers_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/stargazers","contributors_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/contributors","subscribers_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/subscribers","subscription_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/subscription","commits_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/contents/{+path}","compare_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/merges","archive_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/downloads","issues_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/issues{/number}","pulls_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls{/number}","milestones_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/milestones{/number}","notifications_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/labels{/name}","releases_url":"https://api.github.com/repos/TorreyKahuna/analytics-android/releases{/id}","created_at":"2015-07-20T21:26:02Z","updated_at":"2015-07-20T21:26:03Z","pushed_at":"2015-07-28T19:22:34Z","git_url":"git://github.com/TorreyKahuna/analytics-android.git","ssh_url":"git@github.com:TorreyKahuna/analytics-android.git","clone_url":"https://github.com/TorreyKahuna/analytics-android.git","svn_url":"https://github.com/TorreyKahuna/analytics-android","homepage":"https://segment.com/docs/libraries/android/","size":36478,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls/1"},"html":{"href":"https://github.com/TorreyKahuna/analytics-android/pull/1"},"issue":{"href":"https://api.github.com/repos/TorreyKahuna/analytics-android/issues/1"},"comments":{"href":"https://api.github.com/repos/TorreyKahuna/analytics-android/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TorreyKahuna/analytics-android/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/TorreyKahuna/analytics-android/statuses/8c5dfe055575d422b2a9be9a7075782c04deeab9"}}}}