### Question:
AeSimpleSHA1 { @Nullable public static String SHA1(String text) { try { final MessageDigest md = MessageDigest.getInstance("SHA-1"); md.update(text.getBytes("iso-8859-1"), 0, text.length()); final byte[] sha1hash = md.digest(); return convertToHex(sha1hash); } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) { e.printStackTrace(); return null; } }  @Nullable static String SHA1(String text);  }### Answer:
@Test public void testThatSHA1IsCalculatedCorrectly() { final String sha1ForProbe = AeSimpleSHA1.SHA1("probe"); assertThat(sha1ForProbe).isEqualTo("a949c530710f9fca76b45776267c68967fa891e7"); }