Source:
<code>public void checkRunEvent() throws Exception { GHEventPayload.CheckRun event = GitHub.offline() .parseEventPayload(payload.asReader(), GHEventPayload.CheckRun.class); assertThat(event.getRepository().getName(), is("Hello-World")); assertThat(event.getAction(), is("created")); GHCheckRun checkRun = event.getCheckRun(); assertThat(checkRun.getName(), is("Octocoders-linter")); assertThat(checkRun.getHeadSha(), is("ec26c3e57ca3a959ca5aad62de7213c562f8c821")); <START> assertThat(checkRun.getStatus(), is("completed")); <END> assertThat(checkRun.getNodeId(), is("MDg6Q2hlY2tSdW4xMjg2MjAyMjg=")); assertThat(checkRun.getExternalId(), is("")); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); formatter.setTimeZone(TimeZone.getTimeZone("UTC")); assertThat(formatter.format(checkRun.getStartedAt()), is("2019-05-15T15:21:12Z")); assertThat(formatter.format(checkRun.getCompletedAt()), is("2019-05-15T20:22:22Z")); assertThat(checkRun.getConclusion(), is("success")); assertThat(checkRun.getUrl().toString(), is("<LINK_3>")); assertThat(checkRun.getUrl().toString(), is("<LINK_3>")); assertThat(checkRun.getHtmlUrl().toString(), is("<LINK_2>")); assertThat(checkRun.getDetailsUrl().toString(), is("<LINK_1>")); assertThat(checkRun.getApp().getId(), is(29310L)); assertThat(checkRun.getOutput().getTitle(), is("check-run output")); assertThat(event.getSender().getId(), is(21031067L)); }</code><technical_language>@XiongKezhi I guess multiple states of check run need tested for, Is this one</technical_language>

Target:
public void checkRunEvent() throws Exception { GHEventPayload.CheckRun event = GitHub.offline() .parseEventPayload(payload.asReader(), GHEventPayload.CheckRun.class); assertThat(event.getRepository().getName(), is("Hello-World")); assertThat(event.getRepository().getOwner().getLogin(), is("Codertocat")); assertThat(event.getAction(), is("created")); GHCheckRun checkRun = event.getCheckRun(); assertThat(checkRun.getName(), is("Octocoders-linter")); assertThat(checkRun.getHeadSha(), is("ec26c3e57ca3a959ca5aad62de7213c562f8c821")); assertThat(checkRun.getStatus(), is("completed")); assertThat(checkRun.getNodeId(), is("MDg6Q2hlY2tSdW4xMjg2MjAyMjg=")); assertThat(checkRun.getExternalId(), is("")); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); formatter.setTimeZone(TimeZone.getTimeZone("UTC")); assertThat(formatter.format(checkRun.getStartedAt()), is("2019-05-15T15:21:12Z")); assertThat(formatter.format(checkRun.getCompletedAt()), is("2019-05-15T20:22:22Z")); assertThat(checkRun.getConclusion(), is("success")); assertThat(checkRun.getUrl().toString(), is("<LINK_3>")); assertThat(checkRun.getHtmlUrl().toString(), is("<LINK_2>")); assertThat(checkRun.getDetailsUrl().toString(), is("<LINK_1>")); assertThat(checkRun.getApp().getId(), is(29310L)); assertThat(checkRun.getCheckSuite().getId(), is(118578147L)); assertThat(checkRun.getOutput().getTitle(), is("check-run output")); assertThat(checkRun.getOutput().getSummary(), nullValue()); assertThat(checkRun.getOutput().getText(), nullValue()); assertThat(checkRun.getOutput().getAnnotationsCount(), is(0)); assertThat(checkRun.getOutput().getAnnotationsUrl().toString(), is("<LINK_0>")); assertThat(event.getSender().getId(), is(21031067L)); }