String viewName = controller.getCategories(CREATE,REFERRER_ID, model);
verify(categoryService);
assertEquals(ViewNames.ADMIN_CATEGORIES, viewName);
assertEquals(categories, model.asMap().get("categories"));
assertTrue(model.containsAttribute("actionresult"));
assertEquals(CREATE, model.asMap().get("actionresult"));
assertTrue(model.containsAttribute("category"));
assertEquals("Check category object available", new CategoryImpl(), model.asMap().get("category"));
assertTrue(model.containsAttribute("topnav"));
assertTrue(model.containsAttribute("tabs"));