@Before public void setUp() throws Exception { context = new Mockery(); cut = new ImageSizeDefinitionLookupController(); defmgr = context.mock(ImageSizeDefinitionManager.class); cut.setDefmgr(defmgr); cut.setResultKey("result"); }