test_class.declarator: objects = new Object[2]
test_class.modifier: private
test_class.original_string: private Object[] objects = new Object[2];
test_class.type: Object[]
test_class.var_name: objects
test_class.declarator: list = new ArrayList<>()
test_class.modifier: private
test_class.original_string: private List<String> list = new ArrayList<>();
test_class.type: List<String>
test_class.var_name: list
test_class.declarator: temp = "temp"
test_class.modifier: private
test_class.original_string: private String temp = "temp";
test_class.type: String
test_class.var_name: temp
test_class.declarator: key = "TOKEN"
test_class.modifier: private
test_class.original_string: private String key = "TOKEN";
test_class.type: String
test_class.var_name: key
test_class.file: dubbo-plugin/dubbo-auth/src/test/java/org/apache/dubbo/auth/utils/SignatureUtilsTest.java
test_class.identifier: SignatureUtilsTest
test_case.body: @Test
      void testObjectToByteArray() {
  
          try {
              byte[] bytes = SignatureUtils.toByteArray(objects);
              Assertions.assertNotEquals(0, bytes.length);
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
test_case.class_method_signature: SignatureUtilsTest.testObjectToByteArray()
test_case.full_signature: @Test void testObjectToByteArray()
test_case.identifier: testObjectToByteArray
test_case.invocations: toByteArray assertNotEquals printStackTrace
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void testObjectToByteArray()
focal_class.declarator: HMAC_SHA256_ALGORITHM = "HmacSHA256"
focal_class.modifier: private static final
focal_class.original_string: private static final String HMAC_SHA256_ALGORITHM = "HmacSHA256";
focal_class.type: String
focal_class.var_name: HMAC_SHA256_ALGORITHM
focal_class.file: dubbo-plugin/dubbo-auth/src/main/java/org/apache/dubbo/auth/utils/SignatureUtils.java
focal_class.identifier: SignatureUtils
focal_class.class_method_signature: SignatureUtils.sign(String metadata, String key)
focal_class.full_signature: public static String sign(String metadata, String key)
focal_class.identifier: sign
focal_class.modifiers: public static
focal_class.parameters: (String metadata, String key)
focal_class.return: String
focal_class.signature: String sign(String metadata, String key)
focal_class.class_method_signature: SignatureUtils.sign(Object[] parameters, String metadata, String key)
focal_class.full_signature: public static String sign(Object[] parameters, String metadata, String key)
focal_class.identifier: sign
focal_class.modifiers: public static
focal_class.parameters: (Object[] parameters, String metadata, String key)
focal_class.return: String
focal_class.signature: String sign(Object[] parameters, String metadata, String key)
focal_class.class_method_signature: SignatureUtils.sign(byte[] data, String key)
focal_class.full_signature: public static String sign(byte[] data, String key)
focal_class.identifier: sign
focal_class.modifiers: public static
focal_class.parameters: (byte[] data, String key)
focal_class.return: String
focal_class.signature: String sign(byte[] data, String key)
focal_class.class_method_signature: SignatureUtils.toByteArray(Object[] parameters)
focal_class.full_signature: static byte[] toByteArray(Object[] parameters)
focal_class.identifier: toByteArray
focal_class.modifiers: static
focal_class.parameters: (Object[] parameters)
focal_class.return: byte[]
focal_class.signature: byte[] toByteArray(Object[] parameters)
focal_method.body: static byte[] toByteArray(Object[] parameters) throws Exception {
          ByteArrayOutputStream bos = new ByteArrayOutputStream();
          ObjectOutput out = null;
          try {
              out = new ObjectOutputStream(bos);
              out.writeObject(parameters);
              out.flush();
              return bos.toByteArray();
          } finally {
              try {
                  bos.close();
              } catch (IOException ex) {
                  // ignore close exception
              }
          }
      }
focal_method.class_method_signature: SignatureUtils.toByteArray(Object[] parameters)
focal_method.full_signature: static byte[] toByteArray(Object[] parameters)
focal_method.identifier: toByteArray
focal_method.invocations: writeObject flush toByteArray close
focal_method.modifiers: static
focal_method.parameters: (Object[] parameters)
focal_method.return: byte[]
focal_method.signature: byte[] toByteArray(Object[] parameters)