assertStatus(resp.getStatus(), Status.CONFLICT);
}
//test response to a MenuServiceException at RESTMenuService.deleteMenuItem(...)
public void testDeleteMenuItemServiceProblem() throws Exception {
MenuServiceException exception = new MenuServiceException("Something going wrong deleting an item");
RESTMenuService restService = new RESTMenuService();
MenuService menuService = EasyMock.createMock(MenuService.class);
HttpServletRequest mockRequest = EasyMock.createMock(HttpServletRequest.class);
EasyMock.expect(mockRequest.isUserInRole(EasyMock.anyObject(String.class))).andReturn(true).times(3);
menuService.deleteMenuItem(EasyMock.same("groupName"), EasyMock.anyObject(MenuItemDescription.class));