@Test
public void testAddPolicies_Fail_By_Wrong_Request_Body()
		throws IOException, Exception {

	// Arrange
	final String INVALID_JSON = "NOT_A_JSON_COMPATIABLE";
	final boolean force = true;
	final String uri = API + "/policies";
	final String id1 = "id1";
	final String id2 = "id2";
	final boolean valid1 = true;
	final boolean valid2 = false;
	final PolicyMetadataDto response1 = new PolicyMetadataDto();
	response1.setId(id1);
	response1.setValid(valid1);
	final PolicyMetadataDto response2 = new PolicyMetadataDto();
	response2.setId(id2);
	response2.setValid(valid2);
	final PolicyMetadataContainerDto addPolicyResponseContainerDto = new PolicyMetadataContainerDto(
			response1, response2);
	when(
			policyService.addPolicies(any(PolicyContentContainerDto.class),
					eq(force))).thenReturn(addPolicyResponseContainerDto);
	// Act and Assert
	mockMvc.perform(
			post(uri).param("force", Boolean.toString(force))
					.contentType(APPLICATION_JSON_UTF8)
					.content(convertObjectToJsonBytes(INVALID_JSON)))
			.andExpect(status().is4xxClientError());
}