@Test
public void shouldReturnFailureIfAttemptFromAppliedFunctionForFlatMapOfValueReturnsFailure() {

  assertThat(SUCCESS_WITH_VALUE.ifSucceededAttemptMap(mockFailedFunction),
      equalTo(FAILURE_WITH_THROWABLE));
  verify(mockFailedFunction).apply(VALUE);
}