@WithMockUser(roles = "ADMIN")
public void updateEvent() throws Exception {
mockMvc.perform(
put("/events/{id}", 9).contentType(APPLICATION_JSON)
.content("{\"name\": \"Edited\", \"location\": \"Integration Test\"}"))//
<BUG>.andExpect(status().isNoContent())//

;</BUG>
}
@Test

@WithMockUser(roles = "ADMIN")
public void createEvent() throws Exception {
mockMvc.perform(
post("/events/")
.contentType(APPLICATION_JSON)//
.content("{\"name\": \"Spring!\", \"location\": \"Integration Test\"}")//
)
.andExpect(status().isCreated());
}
@Test
