NotificationUtils implements Serializable { public String calculateHash(Map<String, String> parameterMap, String secret) { Map<String, String> map = new HashMap<String, String>(parameterMap); map.put("notification_secret", secret); checkAllParametersNotNull(map); return calculateHash(map); }  boolean isHashValid(Map<String, String> parameterMap, String secret); String calculateHash(Map<String, String> parameterMap, String secret); static final String[] EXPECTED_PARAMS_ARRAY; }
@Test public void testCheckHash2() throws Exception { Map<String, String> map = createParamsMap(); assertEquals("b9d4dee98caec486a8a3b1a577fce7efd0e7f0fb", NOTIFICATION_UTILS.calculateHash(map, SECRET)); }