AssertionUtils { public static void assertPolicyIdConsistency(String requestPolicyId, final String policyContentPolicyId) { if (!requestPolicyId.equals(policyContentPolicyId)) { final StringBuilder errorBuilder = new StringBuilder() .append("Policy/PolicySet IDs in the request (") .append(requestPolicyId) .append(") and the policy content (") .append(policyContentPolicyId).append(") do not match! "); throw new ConflictingRequestException(errorBuilder.toString()); } }  static void assertNotExistsInPolicyRepository(
			List<PolicyDto> policyDtos,
			Function<String, Policy> policyFindFunction); static void assertNotExistsInPolicyRepository(String policyId,
			Function<String, Policy> policyFindFunction); static void assertPoliciesNotEmpty(final List<Policy> policies,
			final String policyId, final String wildcard); static void assertPolicyId(String policyId); static void assertPolicyIdConsistency(String requestPolicyId,
			final String policyContentPolicyId); static void assertPolicyNotNull(final Policy policy,
			final String policyId); static void assertUniqueIds(List<PolicyDto> policyDtos);  }
@Test public void testAssertPolicyIdConsistency() { final String requestPolicyId = "requestPolicyId"; final String policyContentPolicyId = requestPolicyId; AssertionUtils.assertPolicyIdConsistency(requestPolicyId, policyContentPolicyId); }
@Test public void testAssertPolicyIdConsistency_Not_Consistent_Throws_ConflictingRequestException() { thrown.expect(ConflictingRequestException.class); final String requestPolicyId = "requestPolicyId"; final String policyContentPolicyId = requestPolicyId + "."; AssertionUtils.assertPolicyIdConsistency(requestPolicyId, policyContentPolicyId); }