@Test
public void testValidateAndReturn() throws UnsupportedEncodingException {

	// Arrange
	final PolicyDto policyDto = new PolicyDto();
	policyDto.setId(POLICY_ID);
	policyDto.setPolicy(POLICY_STRING.getBytes(DOMUtils.DEFAULT_ENCODING));
	policyDto.setValid(false);
	// Act
	final PolicyDto response = PolicyValidationUtils
			.validateAndReturn(policyDto);
	// Assert
	assertEquals(true, response.isValid());
	assertEquals(policyDto, response);
	assertEquals(policyDto.getPolicy(), response.getPolicy());
	assertEquals(policyDto.getId(), response.getId());
}