### Question:
EncryptTo { public static byte[] encryptToSHA256(String text) { return encryptToSHA256(text.getBytes(StandardCharsets.UTF_8)); } private  EncryptTo(); static byte[] encryptToSHA256(String text); static byte[] encryptToSHA256(byte[] bytes); static byte[] encryptToSHA1(String text); static byte[] encryptToSHA1(byte[] bytes);  }### Answer:
@Test public void testEncryptToSHA256() throws Exception { Assert.assertNotNull(EncryptTo.encryptToSHA256(StringUtil.generateRandomString(32))); Assert.assertNotNull(EncryptTo.encryptToSHA1(StringUtil.generateRandomString(32))); }