AssertionUtils { public static void assertPolicyNotNull(final Policy policy, final String policyId) { if (policy == null) { final StringBuilder errorBuilder = new StringBuilder(); errorBuilder.append( "Policy/PolicySet cannot be found with given ID: ").append( policyId); throw new PolicyNotFoundException(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 testAssertPolicyNotNull() { final Policy policy = new Policy(); final String policyId = "policyId"; AssertionUtils.assertPolicyNotNull(policy, policyId); }
@Test public void testAssertPolicyNotNull_Throws_PolicyNotFoundException() { thrown.expect(PolicyNotFoundException.class); final Policy policy = null; final String policyId = "policyId"; AssertionUtils.assertPolicyNotNull(policy, policyId); }