@Test
public void label() {

    final StatusInfo withoutLabel = StatusInfo.fromStatus(StatusInfo.Status.DOWN);
    assertThat(withoutLabel.getLabel()).isEmpty();
    final String knownLabel = "knownLabel";
    final StatusInfo actual = withoutLabel.label(knownLabel);
    final StatusInfo expected = StatusInfo.of(withoutLabel.getStatus(), withoutLabel.getDetails(),
            withoutLabel.getChildren(), knownLabel);
    assertThat(actual).isEqualTo(expected);
}