private void doTask(String message, BooleanSupplier task) {
      boolean result = task.getAsBoolean();
      if (doAssertions) {
        assertThat(result)
            .as(message)
            .isTrue();
      }
    }
This tests that a deadlock between connection formation and connection pool closing has been
fixed. See GEODE-4615
geode-core/src/integrationTest/java/org/apache/geode/cache/client/internal/pooling/ConnectionManagerJUnitTest.java