@Test
public void testAddLegalRepresentative() throws Exception {

	// required fields are not all filled
	mockMvc.perform(
			post("/patients/connectionMain.html")
					.param("firstName", "albert")
					.param("lastName", "smith")
					.param("birthDate", "01/01/2001"))
			.andExpect(status().isOk())
			.andExpect(
					header().string("content-type",
							"application/json;charset=UTF-8"));
	// required fields all filled
	mockMvc.perform(
			post("/patients/connectionMain.html")
					.param("firstName", "albert")
					.param("lastName", "smith")
					.param("administrativeGenderCode", "M")
					.param("birthDate", "01/01/2001")
					.param("email", "willsmith@example.com")).andExpect(
			redirectedUrl("/patients/connectionMain.html"));
}