public void deleteCategory_invalidValidRequest_nullWidgetToDelete(){
Model model = new ExtendedModelMap();
User user = new User();
long id = 1L;
String categoryText = "Social";
Category category = new Category();
category.setCreatedUser(user);
category.setText(categoryText);
category.setEntityId(id);
SessionStatus sessionStatus = createMock(SessionStatus.class);
expect(userService.getAuthenticatedUser()).andReturn(user).once();
expect(categoryService.get(id)).andReturn(null).once();
replay(userService, categoryService);
String view = controller.deleteCategory(category, validToken, validToken,"true", model, sessionStatus);