selectPs.setInt(1, id); ResultSet rs = selectPs.executeQuery();  assertTrue("There must be at least one row available.", rs.next());  String result = rs.getString(1);  assertTrue("Selected string must be equal to inserted one.", stringToTest.equals(result));
try { selectPs.setInt(1, id); ResultSet rs = selectPs.executeQuery();
    void checkSelectString(String stringToTest, int id) throws Exception {        PreparedStatement selectPs = con.prepareStatement(            "SELECT obj_data FROM test_blob WHERE id = ?");                    selectPs.setInt(1, id);        ResultSet rs = selectPs.executeQuery();                assertTrue("There must be at least one row available.", rs.next());                String result = rs.getString(1);                assertTrue("Selected string must be equal to inserted one.",             stringToTest.equals(result));                    assertTrue("There must be exactly one row.", !rs.next());                rs.close();        selectPs.close();    }