@Test
public void testExportConsent2XACML_ConsentGenException()
		throws ConsentGenException {

	// Arrange
	thrown.expect(ConsentGenException.class);
	long consentId = 1;
	when(consentBuilderMock.buildConsent2Xacml(anyLong())).thenThrow(
			new ConsentGenException("Error in export consent to cdar2"));
	// Act
	sut.exportConsent2XACML(consentId);
	// Assert
}