{"action":"created","comment":{"url":"https://api.github.com/repos/mulesoft/connectors-commons/pulls/comments/65875287","id":65875287,"diff_hunk":"@@ -0,0 +1,36 @@\n+package com.mule.connectors.commons.rest.test.assertion.raml;\n+\n+import org.hamcrest.CoreMatchers;\n+import org.junit.Test;\n+\n+import javax.ws.rs.core.MediaType;\n+import javax.ws.rs.core.MultivaluedHashMap;\n+import javax.ws.rs.core.MultivaluedMap;\n+import javax.ws.rs.core.Response;\n+\n+import static org.easymock.EasyMock.*;\n+import static org.hamcrest.CoreMatchers.equalTo;\n+import static org.hamcrest.CoreMatchers.is;\n+import static org.junit.Assert.assertThat;\n+\n+public class RamlResponseAdapterTest {\n+\n+    @Test\n+    public void getConstructorTest() {\n+        Response response = mock(Response.class);\n+        expect(response.getStatus()).andReturn(Response.Status.OK.getStatusCode());\n+        MultivaluedMap<String, Object> headers = new MultivaluedHashMap<>();\n+        headers.putSingle(\"key\", \"value\");\n+        expect(response.getHeaders()).andReturn(headers);\n+        expect(response.getMediaType()).andReturn(MediaType.APPLICATION_JSON_TYPE);\n+        expect(response.readEntity(eq(String.class))).andReturn(\"\");\n+        replay(response);\n+        RamlResponseAdapter ramlResponseAdapter = new RamlResponseAdapter(response);\n+        assertThat(ramlResponseAdapter.getHeaderValues().size(), equalTo(1));\n+        assertThat(ramlResponseAdapter.getHeaderValues().get(\"key\").size(), equalTo(1));\n+        assertThat(ramlResponseAdapter.getHeaderValues().get(\"key\").get(0), CoreMatchers.<Object>equalTo(\"value\"));\n+        assertThat(ramlResponseAdapter.getContentType(), equalTo(MediaType.APPLICATION_JSON));\n+        assertThat(ramlResponseAdapter.getStatus(), equalTo(Response.Status.OK.getStatusCode()));\n+        assertThat(ramlResponseAdapter.getContent().length, is(7));\n+    }","path":"commons-rest-test/src/test/java/com/mule/connectors/commons/rest/test/assertion/raml/RamlResponseAdapterTest.java","position":35,"original_position":35,"commit_id":"b8f036c8b2cdc8b1ccab328c4c8736b9bcc664f6","original_commit_id":"b8f036c8b2cdc8b1ccab328c4c8736b9bcc664f6","user":{"login":"martinpaoloni","id":1634504,"avatar_url":"https://avatars.githubusercontent.com/u/1634504?v=3","gravatar_id":"","url":"https://api.github.com/users/martinpaoloni","html_url":"https://github.com/martinpaoloni","followers_url":"https://api.github.com/users/martinpaoloni/followers","following_url":"https://api.github.com/users/martinpaoloni/following{/other_user}","gists_url":"https://api.github.com/users/martinpaoloni/gists{/gist_id}","starred_url":"https://api.github.com/users/martinpaoloni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinpaoloni/subscriptions","organizations_url":"https://api.github.com/users/martinpaoloni/orgs","repos_url":"https://api.github.com/users/martinpaoloni/repos","events_url":"https://api.github.com/users/martinpaoloni/events{/privacy}","received_events_url":"https://api.github.com/users/martinpaoloni/received_events","type":"User","site_admin":false},"body":"Same here.","created_at":"2016-06-06T11:33:23Z","updated_at":"2016-06-06T11:33:23Z","html_url":"https://github.com/mulesoft/connectors-commons/pull/12#discussion_r65875287","pull_request_url":"https://api.github.com/repos/mulesoft/connectors-commons/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/mulesoft/connectors-commons/pulls/comments/65875287"},"html":{"href":"https://github.com/mulesoft/connectors-commons/pull/12#discussion_r65875287"},"pull_request":{"href":"https://api.github.com/repos/mulesoft/connectors-commons/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/mulesoft/connectors-commons/pulls/12","id":72581190,"html_url":"https://github.com/mulesoft/connectors-commons/pull/12","diff_url":"https://github.com/mulesoft/connectors-commons/pull/12.diff","patch_url":"https://github.com/mulesoft/connectors-commons/pull/12.patch","issue_url":"https://api.github.com/repos/mulesoft/connectors-commons/issues/12","number":12,"state":"open","locked":false,"title":"Added full coverage","user":{"login":"gaston-mulesoft","id":18558484,"avatar_url":"https://avatars.githubusercontent.com/u/18558484?v=3","gravatar_id":"","url":"https://api.github.com/users/gaston-mulesoft","html_url":"https://github.com/gaston-mulesoft","followers_url":"https://api.github.com/users/gaston-mulesoft/followers","following_url":"https://api.github.com/users/gaston-mulesoft/following{/other_user}","gists_url":"https://api.github.com/users/gaston-mulesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/gaston-mulesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaston-mulesoft/subscriptions","organizations_url":"https://api.github.com/users/gaston-mulesoft/orgs","repos_url":"https://api.github.com/users/gaston-mulesoft/repos","events_url":"https://api.github.com/users/gaston-mulesoft/events{/privacy}","received_events_url":"https://api.github.com/users/gaston-mulesoft/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-03T22:58:00Z","updated_at":"2016-06-06T11:33:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e716e74b7b87d221332dcc2df05244c0460116c","assignee":{"login":"marianogoldman","id":959563,"avatar_url":"https://avatars.githubusercontent.com/u/959563?v=3","gravatar_id":"","url":"https://api.github.com/users/marianogoldman","html_url":"https://github.com/marianogoldman","followers_url":"https://api.github.com/users/marianogoldman/followers","following_url":"https://api.github.com/users/marianogoldman/following{/other_user}","gists_url":"https://api.github.com/users/marianogoldman/gists{/gist_id}","starred_url":"https://api.github.com/users/marianogoldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marianogoldman/subscriptions","organizations_url":"https://api.github.com/users/marianogoldman/orgs","repos_url":"https://api.github.com/users/marianogoldman/repos","events_url":"https://api.github.com/users/marianogoldman/events{/privacy}","received_events_url":"https://api.github.com/users/marianogoldman/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/mulesoft/connectors-commons/pulls/12/commits","review_comments_url":"https://api.github.com/repos/mulesoft/connectors-commons/pulls/12/comments","review_comment_url":"https://api.github.com/repos/mulesoft/connectors-commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mulesoft/connectors-commons/issues/12/comments","statuses_url":"https://api.github.com/repos/mulesoft/connectors-commons/statuses/b8f036c8b2cdc8b1ccab328c4c8736b9bcc664f6","head":{"label":"mulesoft:RAML-INTEGRATION","ref":"RAML-INTEGRATION","sha":"b8f036c8b2cdc8b1ccab328c4c8736b9bcc664f6","user":{"login":"mulesoft","id":185740,"avatar_url":"https://avatars.githubusercontent.com/u/185740?v=3","gravatar_id":"","url":"https://api.github.com/users/mulesoft","html_url":"https://github.com/mulesoft","followers_url":"https://api.github.com/users/mulesoft/followers","following_url":"https://api.github.com/users/mulesoft/following{/other_user}","gists_url":"https://api.github.com/users/mulesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mulesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulesoft/subscriptions","organizations_url":"https://api.github.com/users/mulesoft/orgs","repos_url":"https://api.github.com/users/mulesoft/repos","events_url":"https://api.github.com/users/mulesoft/events{/privacy}","received_events_url":"https://api.github.com/users/mulesoft/received_events","type":"Organization","site_admin":false},"repo":{"id":8708816,"name":"connectors-commons","full_name":"mulesoft/connectors-commons","owner":{"login":"mulesoft","id":185740,"avatar_url":"https://avatars.githubusercontent.com/u/185740?v=3","gravatar_id":"","url":"https://api.github.com/users/mulesoft","html_url":"https://github.com/mulesoft","followers_url":"https://api.github.com/users/mulesoft/followers","following_url":"https://api.github.com/users/mulesoft/following{/other_user}","gists_url":"https://api.github.com/users/mulesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mulesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulesoft/subscriptions","organizations_url":"https://api.github.com/users/mulesoft/orgs","repos_url":"https://api.github.com/users/mulesoft/repos","events_url":"https://api.github.com/users/mulesoft/events{/privacy}","received_events_url":"https://api.github.com/users/mulesoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mulesoft/connectors-commons","description":"","fork":false,"url":"https://api.github.com/repos/mulesoft/connectors-commons","forks_url":"https://api.github.com/repos/mulesoft/connectors-commons/forks","keys_url":"https://api.github.com/repos/mulesoft/connectors-commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mulesoft/connectors-commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mulesoft/connectors-commons/teams","hooks_url":"https://api.github.com/repos/mulesoft/connectors-commons/hooks","issue_events_url":"https://api.github.com/repos/mulesoft/connectors-commons/issues/events{/number}","events_url":"https://api.github.com/repos/mulesoft/connectors-commons/events","assignees_url":"https://api.github.com/repos/mulesoft/connectors-commons/assignees{/user}","branches_url":"https://api.github.com/repos/mulesoft/connectors-commons/branches{/branch}","tags_url":"https://api.github.com/repos/mulesoft/connectors-commons/tags","blobs_url":"https://api.github.com/repos/mulesoft/connectors-commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mulesoft/connectors-commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mulesoft/connectors-commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/mulesoft/connectors-commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mulesoft/connectors-commons/statuses/{sha}","languages_url":"https://api.github.com/repos/mulesoft/connectors-commons/languages","stargazers_url":"https://api.github.com/repos/mulesoft/connectors-commons/stargazers","contributors_url":"https://api.github.com/repos/mulesoft/connectors-commons/contributors","subscribers_url":"https://api.github.com/repos/mulesoft/connectors-commons/subscribers","subscription_url":"https://api.github.com/repos/mulesoft/connectors-commons/subscription","commits_url":"https://api.github.com/repos/mulesoft/connectors-commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/mulesoft/connectors-commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/mulesoft/connectors-commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/mulesoft/connectors-commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/mulesoft/connectors-commons/contents/{+path}","compare_url":"https://api.github.com/repos/mulesoft/connectors-commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mulesoft/connectors-commons/merges","archive_url":"https://api.github.com/repos/mulesoft/connectors-commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mulesoft/connectors-commons/downloads","issues_url":"https://api.github.com/repos/mulesoft/connectors-commons/issues{/number}","pulls_url":"https://api.github.com/repos/mulesoft/connectors-commons/pulls{/number}","milestones_url":"https://api.github.com/repos/mulesoft/connectors-commons/milestones{/number}","notifications_url":"https://api.github.com/repos/mulesoft/connectors-commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mulesoft/connectors-commons/labels{/name}","releases_url":"https://api.github.com/repos/mulesoft/connectors-commons/releases{/id}","deployments_url":"https://api.github.com/repos/mulesoft/connectors-commons/deployments","created_at":"2013-03-11T17:18:47Z","updated_at":"2016-05-17T21:06:28Z","pushed_at":"2016-06-03T22:58:01Z","git_url":"git://github.com/mulesoft/connectors-commons.git","ssh_url":"git@github.com:mulesoft/connectors-commons.git","clone_url":"https://github.com/mulesoft/connectors-commons.git","svn_url":"https://github.com/mulesoft/connectors-commons","homepage":null,"size":87,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"mulesoft:develop","ref":"develop","sha":"331449751ac380d2f095cb318e43f7a30ada16cc","user":{"login":"mulesoft","id":185740,"avatar_url":"https://avatars.githubusercontent.com/u/185740?v=3","gravatar_id":"","url":"https://api.github.com/users/mulesoft","html_url":"https://github.com/mulesoft","followers_url":"https://api.github.com/users/mulesoft/followers","following_url":"https://api.github.com/users/mulesoft/following{/other_user}","gists_url":"https://api.github.com/users/mulesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mulesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulesoft/subscriptions","organizations_url":"https://api.github.com/users/mulesoft/orgs","repos_url":"https://api.github.com/users/mulesoft/repos","events_url":"https://api.github.com/users/mulesoft/events{/privacy}","received_events_url":"https://api.github.com/users/mulesoft/received_events","type":"Organization","site_admin":false},"repo":{"id":8708816,"name":"connectors-commons","full_name":"mulesoft/connectors-commons","owner":{"login":"mulesoft","id":185740,"avatar_url":"https://avatars.githubusercontent.com/u/185740?v=3","gravatar_id":"","url":"https://api.github.com/users/mulesoft","html_url":"https://github.com/mulesoft","followers_url":"https://api.github.com/users/mulesoft/followers","following_url":"https://api.github.com/users/mulesoft/following{/other_user}","gists_url":"https://api.github.com/users/mulesoft/gists{/gist_id}","starred_url":"https://api.github.com/users/mulesoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mulesoft/subscriptions","organizations_url":"https://api.github.com/users/mulesoft/orgs","repos_url":"https://api.github.com/users/mulesoft/repos","events_url":"https://api.github.com/users/mulesoft/events{/privacy}","received_events_url":"https://api.github.com/users/mulesoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mulesoft/connectors-commons","description":"","fork":false,"url":"https://api.github.com/repos/mulesoft/connectors-commons","forks_url":"https://api.github.com/repos/mulesoft/connectors-commons/forks","keys_url":"https://api.github.com/repos/mulesoft/connectors-commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mulesoft/connectors-commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mulesoft/connectors-commons/teams","hooks_url":"https://api.github.com/repos/mulesoft/connectors-commons/hooks","issue_events_url":"https://api.github.com/repos/mulesoft/connectors-commons/issues/events{/number}","events_url":"https://api.github.com/repos/mulesoft/connectors-commons/events","assignees_url":"https://api.github.com/repos/mulesoft/connectors-commons/assignees{/user}","branches_url":"https://api.github.com/repos/mulesoft/connectors-commons/branches{/branch}","tags_url":"https://api.github.com/repos/mulesoft/connectors-commons/tags","blobs_url":"https://api.github.com/repos/mulesoft/connectors-commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mulesoft/connectors-commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mulesoft/connectors-commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/mulesoft/connectors-commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mulesoft/connectors-commons/statuses/{sha}","languages_url":"https://api.github.com/repos/mulesoft/connectors-commons/languages","stargazers_url":"https://api.github.com/repos/mulesoft/connectors-commons/stargazers","contributors_url":"https://api.github.com/repos/mulesoft/connectors-commons/contributors","subscribers_url":"https://api.github.com/repos/mulesoft/connectors-commons/subscribers","subscription_url":"https://api.github.com/repos/mulesoft/connectors-commons/subscription","commits_url":"https://api.github.com/repos/mulesoft/connectors-commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/mulesoft/connectors-commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/mulesoft/connectors-commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/mulesoft/connectors-commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/mulesoft/connectors-commons/contents/{+path}","compare_url":"https://api.github.com/repos/mulesoft/connectors-commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mulesoft/connectors-commons/merges","archive_url":"https://api.github.com/repos/mulesoft/connectors-commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mulesoft/connectors-commons/downloads","issues_url":"https://api.github.com/repos/mulesoft/connectors-commons/issues{/number}","pulls_url":"https://api.github.com/repos/mulesoft/connectors-commons/pulls{/number}","milestones_url":"https://api.github.com/repos/mulesoft/connectors-commons/milestones{/number}","notifications_url":"https://api.github.com/repos/mulesoft/connectors-commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mulesoft/connectors-commons/labels{/name}","releases_url":"https://api.github.com/repos/mulesoft/connectors-commons/releases{/id}","deployments_url":"https://api.github.com/repos/mulesoft/connectors-commons/deployments","created_at":"2013-03-11T17:18:47Z","updated_at":"2016-05-17T21:06:28Z","pushed_at":"2016-06-03T22:58:01Z","git_url":"git://github.com/mulesoft/connectors-commons.git","ssh_url":"git@github.com:mulesoft/connectors-commons.git","clone_url":"https://github.com/mulesoft/connectors-commons.git","svn_url":"https://github.com/mulesoft/connectors-commons","homepage":null,"size":87,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/mulesoft/connectors-commons/pulls/12"},"html":{"href":"https://github.com/mulesoft/connectors-commons/pull/12"},"issue":{"href":"https://api.github.com/repos/mulesoft/connectors-commons/issues/12"},"comments":{"href":"https://api.github.com/repos/mulesoft/connectors-commons/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/mulesoft/connectors-commons/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/mulesoft/connectors-commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mulesoft/connectors-commons/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/mulesoft/connectors-commons/statuses/b8f036c8b2cdc8b1ccab328c4c8736b9bcc664f6"}}}}
{"actor":{"display_login":"martinpaoloni"}}