@Test
void withSQLConnectionError() {

    // refer to https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-error-sqlstates.html
    PoolItem<Connection> connection = new PoolItem<>(null);
    Connections.checkConnectionState(connection, new SQLException("ER_HANDSHAKE_ERROR", "08S01"));
    assertThat(connection.broken).isTrue();
}