@Test
public void shouldCreateStatusRepresentationWithDetailInclUrl() {

    // given
    final StatusRepresentation json = statusRepresentationOf(
            applicationStatus(
                    mock(ApplicationInfo.class),
                    mock(ClusterInfo.class),
                    mock(SystemInfo.class),
                    mock(VersionInfo.class),
                    mock(TeamInfo.class),
                    singletonList(
                            statusDetail("someDetail", OK, "some message", link("item", "http://example.org/some/url", "some title"))
                    )
            )
    );
    // then
    assertThat(json.application.status, is(OK));
    final JsonMap jsonMap = jsonMapFrom(json.application.statusDetails.get("someDetail"));
    final JsonMap link = jsonMap.get("links").asListOf(JsonMap.class).get(0);
    assertThat(link.getString("href"), is("http://example.org/some/url"));
    assertThat(link.getString("title"), is("some title"));
    assertThat(link.getString("rel"), is("item"));
}