@Test
public void testUnavailable() {

    // when
    OptionalService<Object> optionalService = OptionalService.unavailable("abc");
    // then
    assertThat(optionalService.getAvailability().getAvailable()).isFalse();
    assertThat(optionalService.getAvailability().getReason()).isEqualTo("abc");
}