@Test
  public void functionExceptionsIncludeLocalMember() {
    ResultCollector resultCollector = execution.execute(ThrowsExceptionFunction.class.getName());

    Throwable thrown = catchThrowable(resultCollector::getResult);
    assertThat(thrown).isInstanceOf(FunctionException.class);

    FunctionException functionException = (FunctionException) thrown;
    assertThat(functionException.getExceptions()).hasSize(3);
  }
TRAC #41779: InternalExecution.setWaitOnExceptionFlag(true) does not add the exception from the
local node to the FunctionException list of exceptions

<p>
Extracted from {@link PRFunctionExecutionDUnitTest}.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/execute/FunctionExceptionsIncludeLocalMemberRegressionTest.java