test_class.file: shared/src/test/java/org/eclipse/steady/shared/util/DigestUtilTest.java
test_class.identifier: DigestUtilTest
test_case.body: @Test
    public void testGetDigestAsBytes() throws IOException {
      final String text = "foo bar baz";
      final String sha1 =
          DigestUtil.getDigestAsString(text, StandardCharsets.UTF_8, DigestAlgorithm.SHA1)
              .toLowerCase();
      final String expected_sha1 = "c7567e8b39e2428e38bf9c9226ac68de4c67dc39";
      assertEquals(expected_sha1, sha1);
    }
test_case.class_method_signature: DigestUtilTest.testGetDigestAsBytes()
test_case.full_signature: @Test public void testGetDigestAsBytes()
test_case.identifier: testGetDigestAsBytes
test_case.invocations: toLowerCase getDigestAsString assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetDigestAsBytes()
focal_class.declarator: log = org.apache.logging.log4j.LogManager.getLogger()
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = org.apache.logging.log4j.LogManager.getLogger();
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: HEX_ARRAY = "0123456789ABCDEF".toCharArray()
focal_class.modifier: private static final
focal_class.original_string: private static final char[] HEX_ARRAY = "0123456789ABCDEF".toCharArray();
focal_class.type: char[]
focal_class.var_name: HEX_ARRAY
focal_class.file: shared/src/main/java/org/eclipse/steady/shared/util/DigestUtil.java
focal_class.identifier: DigestUtil
focal_class.class_method_signature: DigestUtil.getDigestAsString(
        String _source, Charset _charset, DigestAlgorithm _alg)
focal_class.full_signature: public static final String getDigestAsString(
        String _source, Charset _charset, DigestAlgorithm _alg)
focal_class.identifier: getDigestAsString
focal_class.modifiers: public static final
focal_class.parameters: (
        String _source, Charset _charset, DigestAlgorithm _alg)
focal_class.return: String
focal_class.signature: String getDigestAsString(
        String _source, Charset _charset, DigestAlgorithm _alg)
focal_class.class_method_signature: DigestUtil.getDigestAsBytes(
        String _source, Charset _charset, DigestAlgorithm _alg)
focal_class.full_signature: private static final byte[] getDigestAsBytes(
        String _source, Charset _charset, DigestAlgorithm _alg)
focal_class.identifier: getDigestAsBytes
focal_class.modifiers: private static final
focal_class.parameters: (
        String _source, Charset _charset, DigestAlgorithm _alg)
focal_class.return: byte[]
focal_class.signature: byte[] getDigestAsBytes(
        String _source, Charset _charset, DigestAlgorithm _alg)
focal_class.class_method_signature: DigestUtil.getDigestAsBytes(byte[] _bytes, DigestAlgorithm _alg)
focal_class.full_signature: private static final byte[] getDigestAsBytes(byte[] _bytes, DigestAlgorithm _alg)
focal_class.identifier: getDigestAsBytes
focal_class.modifiers: private static final
focal_class.parameters: (byte[] _bytes, DigestAlgorithm _alg)
focal_class.return: byte[]
focal_class.signature: byte[] getDigestAsBytes(byte[] _bytes, DigestAlgorithm _alg)
focal_class.class_method_signature: DigestUtil.bytesToHex(byte[] bytes)
focal_class.full_signature: public static String bytesToHex(byte[] bytes)
focal_class.identifier: bytesToHex
focal_class.modifiers: public static
focal_class.parameters: (byte[] bytes)
focal_class.return: String
focal_class.signature: String bytesToHex(byte[] bytes)
focal_method.body: private static final byte[] getDigestAsBytes(
        String _source, Charset _charset, DigestAlgorithm _alg) {
      return DigestUtil.getDigestAsBytes(_source.getBytes(_charset), _alg);
    }
focal_method.class_method_signature: DigestUtil.getDigestAsBytes(
        String _source, Charset _charset, DigestAlgorithm _alg)
focal_method.full_signature: private static final byte[] getDigestAsBytes(
        String _source, Charset _charset, DigestAlgorithm _alg)
focal_method.identifier: getDigestAsBytes
focal_method.invocations: getDigestAsBytes getBytes
focal_method.modifiers: private static final
focal_method.parameters: (
        String _source, Charset _charset, DigestAlgorithm _alg)
focal_method.return: byte[]
focal_method.signature: byte[] getDigestAsBytes(
        String _source, Charset _charset, DigestAlgorithm _alg)