@Test
public void testValidateAWSDocumentFailures() {

    
    StringBuilder errMsg = new StringBuilder(256);
    StringBuilder privateIp = new StringBuilder(64);
    MockInstanceAWSProvider provider = new MockInstanceAWSProvider();
    
    // no signature
    
    AWSAttestationData data = new AWSAttestationData();
    data.setDocument("document");
    data.setSignature(null);
    assertFalse(provider.validateAWSDocument("athenz.aws.us-west-2", data,
            "cloudAccount", "instanceId", true, privateIp, errMsg));
    
    // unable to parse
    
    data.setDocument("document");
    data.setSignature("signature");
    assertFalse(provider.validateAWSDocument("athenz.aws.us-west-2", data,
            "cloudAccount", "instanceId", true, privateIp, errMsg));
}