### Question:
BlobUtils { public static Blob bytes2Blob(byte[] bytes) { if (bytes == null) { return null; } try { return new SerialBlob(bytes); } 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 void bytes2Blob() throws UnsupportedEncodingException, SQLException { assertNull(BlobUtils.bytes2Blob(null)); byte[] bs = "xxaaadd".getBytes(Constants.DEFAULT_CHARSET_NAME); assertThat(BlobUtils.bytes2Blob(bs)).isEqualTo( new SerialBlob(bs)); }