@@ -0,0 +1,740 @@
+package com.github.tomitakussaari.mysqlcluscon;%0A%0Aimport org.junit.Test;%0A%0Aimport java.sql.Connection;%0Aimport java.sql.SQLException;%0A%0Aimport static org.mockito.Mockito.doThrow;%0Aimport static org.mockito.Mockito.mock;%0Aimport static org.mockito.Mockito.verify;%0A%0Apublic class ConnectionAndStatusTest %7B%0A%0A    @Test%0A    public void silentlyClosesConnectionEvenIfItThrowsSQLException() throws SQLException %7B%0A        Connection conn = mock(Connection.class);%0A        ConnectionChecker checker = mock(ConnectionChecker.class);%0A        ConnectionAndStatus connectionAndStatus = new ConnectionAndStatus(conn, checker);%0A%0A        doThrow(new SQLException()).when(conn).close();%0A%0A        connectionAndStatus.close();%0A%0A        verify(conn).close();%0A    %7D%0A%0A%7D

Add testcase for ConnectionAndStatus