@Test
public void testGetAllPolicyMetadata_Throws_PolicyNotFoundException()
		throws Exception {

	// Arrange
	final String uri = API + "/policies";
	when(policyService.getAllPolicyMetadata()).thenThrow(
			PolicyNotFoundException.class);
	// Act and Assert
	mockMvc.perform(get(uri).contentType(APPLICATION_JSON_UTF8)).andExpect(
			status().isNotFound());
	// Assert
	verify(policyService, times(1)).getAllPolicyMetadata();
}