### Question:
BlobUtils { public static String blob2string(Blob blob) { if (blob == null) { return null; } try { return new String(blob.getBytes((long) 1, (int) blob.length()), 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 testBlob2string() throws SQLException { assertNull(BlobUtils.blob2string(null)); assertThat(BlobUtils.blob2string(new SerialBlob("123absent".getBytes(Constants.DEFAULT_CHARSET)))).isEqualTo( "123absent"); }