@Test
public void shouldHaveStatusErrorIfDetailsContainWarnings() {

    // given
    final ApplicationStatus applicationStatus = applicationStatus(mock(ApplicationInfo.class), null, mock(SystemInfo.class), mock(VersionInfo.class), mock(TeamInfo.class), asList(
            statusDetail("bar", OK, "a message"),
            statusDetail("foobar", ERROR, "another message"),
            statusDetail("foobar", WARNING, "yet another message"))
    );
    // then
    assertThat(applicationStatus.status, is(ERROR));
}