@Test
public void testAssertNotExistsInPolicyRepositoryListOfPolicyDtoFunctionOfStringPolicy_First_Exists_Throws_PolicyAlreadyExistsException() {

	// Arrange
	thrown.expect(PolicyAlreadyExistsException.class);
	final String policyId1 = "policyId1";
	final String policyId2 = "policyId2";
	final PolicyDto p1 = new PolicyDto();
	p1.setId(policyId1);
	final PolicyDto p2 = new PolicyDto();
	p2.setId(policyId2);
	final Function<String, Policy> policyFindFunction = s -> s
			.equals(policyId2) ? null : new Policy();
	final List<PolicyDto> policyDtos = Arrays.asList(p1, p2);
	// Act
	AssertionUtils.assertNotExistsInPolicyRepository(policyDtos,
			policyFindFunction);
}