assertNotSame(slaveConnection, connection.getConnection(DS_NAME, SQLStatementType.UPDATE));
assertSame(masterConnection, connection.getConnection(DS_NAME, SQLStatementType.SELECT));
assertSame(masterConnection, connection.getConnection(DS_NAME, SQLStatementType.UPDATE));
}
@Test
<BUG>public void releaseBrokenConnectionTest() throws Exception {
Connection conn = connection.getConnection(DS_NAME, SQLStatementType.UPDATE);</BUG>
connection.releaseBrokenConnection(conn);
assertNotSame(conn, connection.getConnection(DS_NAME, SQLStatementType.UPDATE));
<BUG>}
}

</BUG>

assertNotSame(slaveConnection, connection.getConnection(DS_NAME, SQLStatementType.UPDATE));
assertSame(masterConnection, connection.getConnection(DS_NAME, SQLStatementType.SELECT));
assertSame(masterConnection, connection.getConnection(DS_NAME, SQLStatementType.UPDATE));
}
@Test
public void releaseBrokenConnection() throws Exception {
Connection conn = connection.getConnection(DS_NAME, SQLStatementType.UPDATE);
connection.releaseBrokenConnection(conn);
assertNotSame(conn, connection.getConnection(DS_NAME, SQLStatementType.UPDATE));
