List<Policy> policies = service.getPolicies(adminUsername, adminPassword, null);
int policyListSize = policies.size();
assertTrue ( "Unable to get policies", (policyListSize > 0) );
String scope = "http://test.scope/8475374";
Policy policy = new Policy ( scope, "http://nowhere.com", "ALLOW" );
service.createPolicy(policy, adminUsername, adminPassword);
assertTrue ( "New policy not created", service.getPolicies(adminUsername, adminPassword, scope).size() > 0);
service.deletePolicy(policy, adminUsername, adminPassword);
assertEquals ( service.getPolicies(adminUsername, adminPassword, null).size(), policyListSize);
}