categories = new ArrayList<Category>();
categories.add(new CategoryImpl());
categories.add(new CategoryImpl());
webDataBinder = createMock(WebDataBinder.class);
categoryEditor = new CategoryEditor(categoryService);
controller.setCategoryEditor(categoryEditor);
}