//test response to a MenuServiceException on RESTMenuService.listMenuOptions()
public void testListMenuOptionsServiceProblem() throws Exception {
RESTMenuService restService = new RESTMenuService();
MenuService menuService = EasyMock.createMock(MenuService.class);
MenuServiceException exception = new MenuServiceException("Something going wrong");
EasyMock.expect(menuService.listOptions()).andThrow(exception).once();
restService.setMenuService(menuService);
EasyMock.replay(menuService);
Response resp = restService.listMenuOptions();
EasyMock.verify(menuService);