insertPs.setInt(1, id); insertPs.setBytes(2, TEST_STRING.getBytes());  int inserted = insertPs.executeUpdate();  assertTrue("Row should be inserted.", inserted == 1);  checkSelectString(TEST_STRING, id);   PreparedStatement updatePs = con.prepareStatement( "UPDATE test_blob SET obj_data=? WHERE id=?;");
try { insertPs.setInt(1, id); insertPs.setBytes(2, TEST_STRING.getBytes());
    public void testModifyBlob() throws Exception {        int id = 1;        PreparedStatement insertPs = con.prepareStatement(            "INSERT INTO test_blob (id, obj_data) VALUES (?,?);");                    insertPs.setInt(1, id);        insertPs.setBytes(2, TEST_STRING.getBytes());                int inserted = insertPs.executeUpdate();                assertTrue("Row should be inserted.", inserted == 1);                checkSelectString(TEST_STRING, id);                //Update item        PreparedStatement updatePs = con.prepareStatement(            "UPDATE test_blob SET obj_data=? WHERE id=?;");                    updatePs.setBytes(1, ANOTHER_TEST_STRING.getBytes());        updatePs.setInt(2, id);        updatePs.executeUpdate();                updatePs.clearParameters();                checkSelectString(ANOTHER_TEST_STRING, id);                updatePs.setBytes(1, TEST_STRING.getBytes());        updatePs.setInt(2, id + 1);        int updated = updatePs.executeUpdate();                assertTrue("No rows should be updated.", updated == 0);                checkSelectString(ANOTHER_TEST_STRING, id);                insertPs.close();        updatePs.close();    }