@Test
public void testToPolicyDtoByteArray() throws SAXException, IOException {

	// Arrange
	final byte[] bytes = POLICY_STRING.getBytes(DOMUtils.DEFAULT_ENCODING);
	final PolicyContentDto addPolicyRequestDto = new PolicyContentDto();
	addPolicyRequestDto.setPolicy(bytes);
	// Act
	final PolicyDto policyDto = MappingUtils.toPolicyDto(bytes);
	// Assert
	assertEquals(POLICY_ID, policyDto.getId());
	assertXMLEqual(POLICY_STRING, new String(policyDto.getPolicy(),
			DOMUtils.DEFAULT_ENCODING));
}