public void test_clob() throws IOException, SQLException {
dao.create(BinObject.class, true);
BinObject bin = new BinObject();
File f = File.createTempFile("clob", "data");
Files.write(f, "中文");
bin.setMyClob(new SimpleClob(f));
dao.insert(bin);
bin = dao.fetch(BinObject.class);
String str = Lang.readAll(bin.getMyClob().getCharacterStream());
assertEquals("中文", str);