@SuppressWarnings("unchecked")
@Test
public void testEnforcePolicy_Throws_PolicyProviderException()
		throws AuditException, NoPolicyFoundException,
		PolicyProviderException {

	// Arrange
	thrown.expect(PolicyProviderException.class);
	final XacmlRequest xacmlRequest = mock(XacmlRequest.class);
	final XacmlResponse xacmlResponse = mock(XacmlResponse.class);
	when(policyDesicionPoint.evaluateRequest(xacmlRequest)).thenThrow(
			PolicyProviderException.class);
	// Act
	final XacmlResponse response = sut.enforcePolicy(xacmlRequest);
	// Assert
	verify(policyDesicionPoint, times(1)).evaluateRequest(xacmlRequest);
	assertEquals(xacmlResponse, response);
}