### Question:
UtilChecksum { public static String getSha(byte[] bytes) { Check.notNull(bytes); final StringBuilder builder = new StringBuilder(MAX_LENGTH); for (final byte b : SHA512.digest(bytes)) { builder.append(0xFF & b); } return builder.toString(); } private  UtilChecksum(); static boolean checkSha(String value, String signature); static boolean checkSha(int value, String signature); static String getSha(byte[] bytes); static String getSha(int i); static String getSha(String str);  }### Answer:
@Test void testEncodingEmptyNullString() { assertThrows(() -> UtilChecksum.getSha((String) null), Check.ERROR_NULL); }
@Test void testEncodingEmptyNullBytes() { assertThrows(() -> UtilChecksum.getSha((byte[]) null), Check.ERROR_NULL); }