public void testDeleteMenuItemEmptyGroup() throws Exception {
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);
EasyMock.expect(menuService.listMenuItems()).andReturn(new HashMap<String, List<MenuItemDescription>>()).once();
restService.setMenuService(menuService);
SaveMenuItemDTO dto = new SaveMenuItemDTO();
List<String> allowedEvents = new ArrayList<String>();
allowedEvents.add("onclick");
allowedEvents.add("onfocus");