### Question:
Signature { protected static String getSignature(Param[] params, Account account) { String signature = ""; if (params != null) { sortParams(params); String stitchParams = stitchParams(params); stitchParams += account.getPrivateKey(); signature = sha1(stitchParams); } return signature; }  static String stitchParams(Param[] params); static String stitchParams(List<Param> params); static String sha1(String decrypt);  }### Answer:
@Test public void getSignatureArray() { Param[] params = initParamsArray(); System.out.println(Signature.getSignature(params,account)); }
@Test public void getSignatureLsit() { List<Param> list = new ArrayList<>(initParamsList()); System.out.println(Signature.getSignature(list,account)); }