{"action":"created","comment":{"url":"https://api.github.com/repos/mulesoft/mule/pulls/comments/91963199","pull_request_review_id":12472229,"id":91963199,"diff_hunk":"@@ -0,0 +1,71 @@\n+/*\n+ * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com\n+ * The software in this package is published under the terms of the CPAL v1.0\n+ * license, a copy of which has been included with this distribution in the\n+ * LICENSE.txt file.\n+ */\n+package org.mule;\n+\n+\n+import static java.nio.charset.StandardCharsets.UTF_8;\n+import static org.junit.Assert.assertArrayEquals;\n+import static org.junit.Assert.assertEquals;\n+import static org.junit.Assert.assertNotNull;\n+import org.mule.tck.junit4.FunctionalTestCase;\n+\n+import java.io.ByteArrayInputStream;\n+\n+import org.junit.Test;\n+\n+public class PayloadForLoggingBreaksStreamTestCase extends FunctionalTestCase\n+{\n+    private static final int invalidUTFValue = -128;\n+    private static final String UTF_8_CONSTANT = UTF_8.name();\n+\n+    @Test\n+    public void testCallGetPayloadForLogging() throws Exception\n+    {\n+        assertEquals(\"Set file encoding to UTF-8 for this test\",UTF_8_CONSTANT, System.getProperty(\"file.encoding\"));","path":"tests/integration/src/test/java/org/mule/PayloadForLoggingBreaksStreamTestCase.java","position":28,"original_position":28,"commit_id":"61f2a8205b3d0160bc68426848fcd8e910099810","original_commit_id":"61f2a8205b3d0160bc68426848fcd8e910099810","user":{"login":"facundovs","id":18473369,"avatar_url":"https://avatars.githubusercontent.com/u/18473369?v=3","gravatar_id":"","url":"https://api.github.com/users/facundovs","html_url":"https://github.com/facundovs","followers_url":"https://api.github.com/users/facundovs/followers","following_url":"https://api.github.com/users/facundovs/following{/other_user}","gists_url":"https://api.github.com/users/facundovs/gists{/gist_id}","starred_url":"https://api.github.com/users/facundovs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facundovs/subscriptions","organizations_url":"https://api.github.com/users/facundovs/orgs","repos_url":"https://api.github.com/users/facundovs/repos","events_url":"https://api.github.com/users/facundovs/events{/privacy}","received_events_url":"https://api.github.com/users/facundovs/received_events","type":"User","site_admin":false},"body":"Ok. I could set the encoding through a system property.","created_at":"2016-12-12T15:03:50Z","updated_at":"2016-12-12T15:03:50Z","html_url":"https://github.com/mulesoft/mule/pull/3734#discussion_r91963199","pull_request_url":"https://api.github.com/repos/mulesoft/mule/pulls/3734","_links":{"self":{"href":"https://api.github.com/repos/mulesoft/mule/pulls/comments/91963199"},"html":{"href":"https://github.com/mulesoft/mule/pull/3734#discussion_r91963199"},"pull_request":{"href":"https://api.github.com/repos/mulesoft/mule/pulls/3734"}}},"pull_request":{"url":"https://api.github.com/repos/mulesoft/mule/pulls/3734","id":97546679,"html_url":"https://github.com/mulesoft/mule/pull/3734","diff_url":"https://github.com/mulesoft/mule/pull/3734.diff","patch_url":"https://github.com/mulesoft/mule/pull/3734.patch","issue_url":"https://api.github.com/repos/mulesoft/mule/issues/3734","number":3734,"state":"closed","locked":false,"title":"MULE-11109: getPayloadForLogging changes stream.","user":{"login":"facundovs","id":18473369,"avatar_url":"https://avatars.githubusercontent.com/u/18473369?v=3","gravatar_id":"","url":"https://api.github.com/users/facundovs","html_url":"https://github.com/facundovs","followers_url":"https://api.github.com/users/facundovs/followers","following_url":"https://api.github.com/users/facundovs/following{/other_user}","gists_url":"https://api.github.com/users/facundovs/gists{/gist_id}","starred_url":"https://api.github.com/users/facundovs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facundovs/subscriptions","organizations_url":"https://api.github.com/users/facundovs/orgs","repos_url":"https://api.github.com/users/facundovs/repos","events_url":"https://api.github.com/users/facundovs/events{/privacy}","received_events_url":"https://api.github.com/users/facundovs/received_events","type":"User","site_admin":false},"body":"ObjectToString and DefaultMuleMessage classes were modified.\r\nPayloadForLogginBreaksStreamTestCase and bug-login-breajks-stream were added.","created_at":"2016-12-12T12:46:32Z","updated_at":"2016-12-12T15:03:50Z","closed_at":"2016-12-12T14:15:46Z","merged_at":"2016-12-12T14:15:46Z","merge_commit_sha":"a4500f30e026c88e1b7eeab3f34e7900b63bcae5","assignee":{"login":"aiannucci","id":4360246,"avatar_url":"https://avatars.githubusercontent.com/u/4360246?v=3","gravatar_id":"","url":"https://api.github.com/users/aiannucci","html_url":"https://github.com/aiannucci","followers_url":"https://api.github.com/users/aiannucci/followers","following_url":"https://api.github.com/users/aiannucci/following{/other_user}","gists_url":"https://api.github.com/users/aiannucci/gists{/gist_id}","starred_url":"https://api.github.com/users/aiannucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aiannucci/subscriptions","organizations_url":"https://api.github.com/users/aiannucci/orgs","repos_url":"https://api.github.com/users/aiannucci/repos","events_url":"https://api.github.com/users/aiannucci/events{/privacy}","received_events_url":"https://api.github.com/users/aiannucci/received_events","type":"User","site_admin":false},"assignees":[{"login":"aiannucci","id":4360246,"avatar_url":"https://avatars.githubusercontent.com/u/4360246?v=3","gravatar_id":"","url":"https://api.github.com/users/aiannucci","html_url":"https://github.com/aiannucci","followers_url":"https://api.github.com/users/aiannucci/followers","following_url":"https://api.github.com/users/aiannucci/following{/other_user}","gists_url":"https://api.github.com/users/aiannucci/gists{/gist_id}","starred_url":"https://api.github.com/users/aiannucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aiannucci/subscriptions","organizations_url":"https://api.github.com/users/aiannucci/orgs","repos_url":"https://api.github.com/users/aiannucci/repos","events_url":"https://api.github.com/users/aiannucci/events{/privacy}","received_events_url":"https://api.github.com/users/aiannucci/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mulesoft/mule/pulls/3734/commits","review_comments_url":"https://api.github.com/repos/mulesoft/mule/pulls/3734/comments","review_comment_url":"https://api.github.com/repos/mulesoft/mule/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mulesoft/mule/issues/3734/comments","statuses_url":"https://api.github.com/repos/mulesoft/mule/statuses/61f2a8205b3d0160bc68426848fcd8e910099810","head":{"label":"mulesoft:MULE-11109","ref":"MULE-11109","sha":"61f2a8205b3d0160bc68426848fcd8e910099810","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":7058562,"name":"mule","full_name":"mulesoft/mule","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/mule","description":"Mule Community Edition","fork":false,"url":"https://api.github.com/repos/mulesoft/mule","forks_url":"https://api.github.com/repos/mulesoft/mule/forks","keys_url":"https://api.github.com/repos/mulesoft/mule/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mulesoft/mule/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mulesoft/mule/teams","hooks_url":"https://api.github.com/repos/mulesoft/mule/hooks","issue_events_url":"https://api.github.com/repos/mulesoft/mule/issues/events{/number}","events_url":"https://api.github.com/repos/mulesoft/mule/events","assignees_url":"https://api.github.com/repos/mulesoft/mule/assignees{/user}","branches_url":"https://api.github.com/repos/mulesoft/mule/branches{/branch}","tags_url":"https://api.github.com/repos/mulesoft/mule/tags","blobs_url":"https://api.github.com/repos/mulesoft/mule/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mulesoft/mule/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mulesoft/mule/git/refs{/sha}","trees_url":"https://api.github.com/repos/mulesoft/mule/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mulesoft/mule/statuses/{sha}","languages_url":"https://api.github.com/repos/mulesoft/mule/languages","stargazers_url":"https://api.github.com/repos/mulesoft/mule/stargazers","contributors_url":"https://api.github.com/repos/mulesoft/mule/contributors","subscribers_url":"https://api.github.com/repos/mulesoft/mule/subscribers","subscription_url":"https://api.github.com/repos/mulesoft/mule/subscription","commits_url":"https://api.github.com/repos/mulesoft/mule/commits{/sha}","git_commits_url":"https://api.github.com/repos/mulesoft/mule/git/commits{/sha}","comments_url":"https://api.github.com/repos/mulesoft/mule/comments{/number}","issue_comment_url":"https://api.github.com/repos/mulesoft/mule/issues/comments{/number}","contents_url":"https://api.github.com/repos/mulesoft/mule/contents/{+path}","compare_url":"https://api.github.com/repos/mulesoft/mule/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mulesoft/mule/merges","archive_url":"https://api.github.com/repos/mulesoft/mule/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mulesoft/mule/downloads","issues_url":"https://api.github.com/repos/mulesoft/mule/issues{/number}","pulls_url":"https://api.github.com/repos/mulesoft/mule/pulls{/number}","milestones_url":"https://api.github.com/repos/mulesoft/mule/milestones{/number}","notifications_url":"https://api.github.com/repos/mulesoft/mule/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mulesoft/mule/labels{/name}","releases_url":"https://api.github.com/repos/mulesoft/mule/releases{/id}","deployments_url":"https://api.github.com/repos/mulesoft/mule/deployments","created_at":"2012-12-07T19:23:06Z","updated_at":"2016-12-10T00:21:26Z","pushed_at":"2016-12-12T14:55:24Z","git_url":"git://github.com/mulesoft/mule.git","ssh_url":"git@github.com:mulesoft/mule.git","clone_url":"https://github.com/mulesoft/mule.git","svn_url":"https://github.com/mulesoft/mule","homepage":null,"size":290233,"stargazers_count":394,"watchers_count":394,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":396,"mirror_url":null,"open_issues_count":16,"forks":396,"open_issues":16,"watchers":394,"default_branch":"mule-4.x"}},"base":{"label":"mulesoft:mule-3.x","ref":"mule-3.x","sha":"ed86e2682df5620e3383379cc25ef29f1a50c5ba","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":7058562,"name":"mule","full_name":"mulesoft/mule","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/mule","description":"Mule Community Edition","fork":false,"url":"https://api.github.com/repos/mulesoft/mule","forks_url":"https://api.github.com/repos/mulesoft/mule/forks","keys_url":"https://api.github.com/repos/mulesoft/mule/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mulesoft/mule/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mulesoft/mule/teams","hooks_url":"https://api.github.com/repos/mulesoft/mule/hooks","issue_events_url":"https://api.github.com/repos/mulesoft/mule/issues/events{/number}","events_url":"https://api.github.com/repos/mulesoft/mule/events","assignees_url":"https://api.github.com/repos/mulesoft/mule/assignees{/user}","branches_url":"https://api.github.com/repos/mulesoft/mule/branches{/branch}","tags_url":"https://api.github.com/repos/mulesoft/mule/tags","blobs_url":"https://api.github.com/repos/mulesoft/mule/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mulesoft/mule/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mulesoft/mule/git/refs{/sha}","trees_url":"https://api.github.com/repos/mulesoft/mule/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mulesoft/mule/statuses/{sha}","languages_url":"https://api.github.com/repos/mulesoft/mule/languages","stargazers_url":"https://api.github.com/repos/mulesoft/mule/stargazers","contributors_url":"https://api.github.com/repos/mulesoft/mule/contributors","subscribers_url":"https://api.github.com/repos/mulesoft/mule/subscribers","subscription_url":"https://api.github.com/repos/mulesoft/mule/subscription","commits_url":"https://api.github.com/repos/mulesoft/mule/commits{/sha}","git_commits_url":"https://api.github.com/repos/mulesoft/mule/git/commits{/sha}","comments_url":"https://api.github.com/repos/mulesoft/mule/comments{/number}","issue_comment_url":"https://api.github.com/repos/mulesoft/mule/issues/comments{/number}","contents_url":"https://api.github.com/repos/mulesoft/mule/contents/{+path}","compare_url":"https://api.github.com/repos/mulesoft/mule/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mulesoft/mule/merges","archive_url":"https://api.github.com/repos/mulesoft/mule/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mulesoft/mule/downloads","issues_url":"https://api.github.com/repos/mulesoft/mule/issues{/number}","pulls_url":"https://api.github.com/repos/mulesoft/mule/pulls{/number}","milestones_url":"https://api.github.com/repos/mulesoft/mule/milestones{/number}","notifications_url":"https://api.github.com/repos/mulesoft/mule/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mulesoft/mule/labels{/name}","releases_url":"https://api.github.com/repos/mulesoft/mule/releases{/id}","deployments_url":"https://api.github.com/repos/mulesoft/mule/deployments","created_at":"2012-12-07T19:23:06Z","updated_at":"2016-12-10T00:21:26Z","pushed_at":"2016-12-12T14:55:24Z","git_url":"git://github.com/mulesoft/mule.git","ssh_url":"git@github.com:mulesoft/mule.git","clone_url":"https://github.com/mulesoft/mule.git","svn_url":"https://github.com/mulesoft/mule","homepage":null,"size":290233,"stargazers_count":394,"watchers_count":394,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":396,"mirror_url":null,"open_issues_count":16,"forks":396,"open_issues":16,"watchers":394,"default_branch":"mule-4.x"}},"_links":{"self":{"href":"https://api.github.com/repos/mulesoft/mule/pulls/3734"},"html":{"href":"https://github.com/mulesoft/mule/pull/3734"},"issue":{"href":"https://api.github.com/repos/mulesoft/mule/issues/3734"},"comments":{"href":"https://api.github.com/repos/mulesoft/mule/issues/3734/comments"},"review_comments":{"href":"https://api.github.com/repos/mulesoft/mule/pulls/3734/comments"},"review_comment":{"href":"https://api.github.com/repos/mulesoft/mule/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mulesoft/mule/pulls/3734/commits"},"statuses":{"href":"https://api.github.com/repos/mulesoft/mule/statuses/61f2a8205b3d0160bc68426848fcd8e910099810"}}}}
{"actor":{"display_login":"facundovs"}}