public static <T extends Throwable> void checkNotEmpty(final String value, final Supplier<T> exceptionSupplierIfUnexpected) throws T {
        if (Strings.isNullOrEmpty(value)) {
            throw exceptionSupplierIfUnexpected.get();
        }
    }
@Test
    void assertCheckNotEmptyWithCollectionToNotThrowException() {
        assertDoesNotThrow(() -> ShardingSpherePreconditions.checkNotEmpty(Collections.singleton("foo"), SQLException::new));
    }