@Test
public void testExportConsent2XACMLPdfConsentTo_Object_ConsentGenException()
		throws ConsentGenException {

	// Arrange
	thrown.expect(ConsentGenException.class);
	Consent consent = mock(Consent.class);
	when(consentBuilderMock.buildConsent2XacmlPdfConsentTo(consent))
			.thenThrow(
					new ConsentGenException(
							"Error in export consent to cdar2"));
	// Act
	sut.exportConsent2XacmlPdfConsentTo(consent);
	// Assert
}