### Question:
AWSV4AuthValidator { public static boolean validateRequest(String strToSign, String signature, String userKey) { String expectedSignature = Hex.encode(sign(getSigningKey(userKey, strToSign), strToSign)); return expectedSignature.equals(signature); } private  AWSV4AuthValidator(); static String hash(String payload); static boolean validateRequest(String strToSign, String signature,
      String userKey);  }### Answer:
@Test public void testValidateRequest() { assertTrue(AWSV4AuthValidator.validateRequest(strToSign, signature, awsAccessKey)); }