I have a simple Spring test
@Test
public void getAllUsers_AsPublic() throws Exception {
doGet("/api/users").andExpect(status().isForbidden());
}
public ResultActions doGet(String url) throws Exception {
return mockMvc.perform(get(url).header(header[0],header[1])).andDo(print());
}
I would like to verify that the response body is empty. E.g. Do something like .andExpect(content().isEmpty())