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