### Question:
BlobUtils { public static Blob string2blob(String str) { if (str == null) { return null; } try { return new SerialBlob(str.getBytes(Constants.DEFAULT_CHARSET)); } catch (Exception e) { throw new ShouldNeverHappenException(e); } } private  BlobUtils(); static Blob string2blob(String str); static String blob2string(Blob blob); static Blob bytes2Blob(byte[] bytes); static byte[] blob2Bytes(Blob blob);  }### Answer:
@Test public void testString2blob() throws SQLException { assertNull(BlobUtils.string2blob(null)); assertThat(BlobUtils.string2blob("123abc")).isEqualTo( new SerialBlob("123abc".getBytes(Constants.DEFAULT_CHARSET))); }