@Test
public void shouldReturnValueOfSucceededFromAppliedFunctionForFlatMapOfSucceeded() {

  assertThat(SUCCESS_WITH_OTHER_VALUE.ifSucceededAttemptMap(mockSucceededValueFunction),
      equalTo(SUCCESS_WITH_VALUE));
  verify(mockSucceededValueFunction).apply(OTHER_VALUE);
}