@Test
public void testAuthenticateMissingProperties() {

  // Test Missing query properties
  String missingOrg = ResourceRequest.POLICY_KEY + "=policy&" + ResourceRequest.SIGNATURE_KEY + "=signature";
  assertEquals(Status.BadRequest, ResourceRequestUtil
          .resourceRequestFromQueryString(missingOrg, clientIp, null, properties, true).getStatus());
  String missingPolicy = ResourceRequest.ENCRYPTION_ID_KEY + "=organization&" + ResourceRequest.SIGNATURE_KEY
          + "=signature";
  assertEquals(Status.BadRequest, ResourceRequestUtil
          .resourceRequestFromQueryString(missingPolicy, clientIp, null, properties, true).getStatus());
  String missingSignature = ResourceRequest.ENCRYPTION_ID_KEY + "=organization&" + ResourceRequest.POLICY_KEY
          + "=policy";
  assertEquals(Status.BadRequest, ResourceRequestUtil
          .resourceRequestFromQueryString(missingSignature, clientIp, null, properties, true).getStatus());
}