@Test
void shouldReturnIssuesDetailWithNewIssuesWhenCalledWithNewLink() {

    IssuesDetail details = createTrendDetails("new", RUN, createResult(),
            ALL_ISSUES, NEW_ISSUES, OUTSTANDING_ISSUES, FIXED_ISSUES, ENCODING, createParent(),
            IssuesDetail.class);
    assertThat(details).hasIssues(NEW_ISSUES);
    assertThat(details).hasFixedIssues(NO_ISSUES);
    assertThat(details).hasNewIssues(NEW_ISSUES);
    assertThat(details).hasOutstandingIssues(NO_ISSUES);
}