public void testGetValidationsServiceProblem() throws Exception {
RESTMenuService restService = new RESTMenuService();
MenuService menuService = EasyMock.createMock(MenuService.class);
MenuServiceException exception = new MenuServiceException("Something going wrong");
EasyMock.expect(menuService.listValidations()).andThrow(exception).once();
restService.setMenuService(menuService);
EasyMock.replay(menuService);
Response resp = restService.getValidations();
EasyMock.verify(menuService);