public void createCategory_invalidToken(){
Model model = new ExtendedModelMap();
String invalidToken = AdminControllerUtil.generateSessionToken();
User user = new User();
String categoryText = "Social";
Category category = new Category();
category.setText(categoryText);
SessionStatus sessionStatus = createMock(SessionStatus.class);
expect(userService.getAuthenticatedUser()).andReturn(user).once();
expect(categoryService.create(categoryText, user)).andReturn(new Category());
sessionStatus.setComplete();
expectLastCall();
replay(userService, categoryService,sessionStatus);
String view = controller.createCategory(category, validToken, invalidToken, model, sessionStatus);
assertTrue("Test should catch exception and never hit this test", false);