String viewName = controller.getCategories(UPDATE, model);
verify(categoryService);
assertEquals(ViewNames.ADMIN_CATEGORIES, viewName);
assertEquals(categories, model.asMap().get("categories"));
assertTrue(model.containsAttribute("actionresult"));
assertEquals(UPDATE, model.asMap().get("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"));