//test response to a FormServiceException for RESTFormService.deleteForm(...)
public void testDeleteFormItemServiceProblem() throws Exception {
RESTFormService restService = new RESTFormService();
FormDefinitionService formService = EasyMock.createMock(FormDefinitionService.class);
formService.deleteForm(EasyMock.eq("somePackage"), EasyMock.eq("MY_FORM_ID"));
FormServiceException exception = new FormServiceException("Something going wrong");
EasyMock.expectLastCall().andThrow(exception).once();
ServletContext context = EasyMock.createMock(ServletContext.class);
restService.setFormService(formService);
HttpSession session = EasyMock.createMock(HttpSession.class);