public static <T extends Throwable> void checkMustEmpty(final Collection<?> values, final Supplier<T> exceptionSupplierIfUnexpected) throws T {
        if (!values.isEmpty()) {
            throw exceptionSupplierIfUnexpected.get();
        }
    }
@Test
    void assertCheckMustEmptyWithCollectionToThrowsException() {
        assertThrows(SQLException.class, () -> ShardingSpherePreconditions.checkMustEmpty(Collections.singleton("foo"), SQLException::new));
    }