String viewName = controller.getCategories("", model);
verify(categoryService);
assertEquals(ViewNames.ADMIN_CATEGORIES, viewName);
assertEquals(categories, model.asMap().get("categories"));
assertFalse(model.containsAttribute("actionresult"));
assertTrue(model.containsAttribute("category"));
assertEquals("Check that the category object available", new CategoryImpl(), model.asMap().get("category"));
assertTrue(model.containsAttribute("topnav"));
assertTrue(model.containsAttribute("tabs"));
assertTrue("verify tokencheck", model.asMap().containsKey(ModelKeys.TOKENCHECK));