@Test
public void shouldFailToUpdateStatusWithDifferentName() {

    // given
    final MutableStatusDetailIndicator indicator = new MutableStatusDetailIndicator(statusDetail("foo", OK, "message"));
    // when / then
    assertThrows(IllegalArgumentException.class, () -> {
        indicator.update(statusDetail("bar", OK, "message"));
    });
}