private static boolean isInstanceOfAnyOf(final Object object, final Class<?>... types) {
            return Stream.of(types).anyMatch(type -> type.isAssignableFrom(object.getClass()));
        }
Wrapper around CountDownLatch for single-occurrence events.
jdisc_core/src/main/java/com/yahoo/jdisc/test/ServerProviderConformanceTest.java