@Test
public void shouldApplyFunctionForMergeFromOfSuccess() {

  assertThat(SUCCESS_WITH_VALUE.ifSucceededMergeFrom(mockSupplier, mockMerger),
      equalTo(SUCCESS_WITH_FLOAT_VALUE));
  verify(mockMerger).merge(VALUE, STRING_VALUE);
}