appCtx.registerSingleton(beanName1, Object.class);
appCtx.registerSingleton(beanName2, Object.class);
appCtx.registerPrototype(beanName3, Object.class);
ProgressMonitor mockProgressMonitor = (ProgressMonitor) EasyMock.createStrictMock(ProgressMonitor.class);
mockProgressMonitor.taskStarted("Loading Application Context ...", expectedSingletonBeanCount);
mockProgressMonitor.subTaskStarted("Loading " + beanName1 + " ...");
mockProgressMonitor.worked(1);
mockProgressMonitor.subTaskStarted("Loading " + beanName2 + " ...");
mockProgressMonitor.worked(1);
EasyMock.replay(mockProgressMonitor);