@Test
public void testById() throws Exception {

  // given
  Task task = TestEntityHelper.createTestTaskFlow(janbanery).get();
  IssuesFlow issuesFlow = janbanery.issues().of(task);
  Issue issue = issuesFlow.create(TestEntityHelper.createTestIssue()).get();
  // when
  Long createdTasksId = issue.getId();
  Issue fetchedIssue = janbanery.issues().of(task).byId(createdTasksId).get();
  // then
  assertThat(fetchedIssue.getId()).isEqualTo(issue.getId());
  assertThat(fetchedIssue).isEqualTo(issue);
}