tester = new WicketTester();
BundleContext bundleContextMock = mock(BundleContext.class);
Bundle bundleMock = mock(Bundle.class);
when(bundleContextMock.getBundle()).thenReturn(bundleMock);
TaskboxServiceImpl workflow = new TaskboxServiceImpl();
persistenceService = mock(PersistenceService.class);
PersistenceManager persistenceManager = mock(PersistenceManager.class);
when(persistenceManager.getPersistenceForBundle(any(Bundle.class))).thenReturn(persistenceService);
workflow.setPersistenceManager(persistenceManager);
workflow.setBundleContext(bundleContextMock);
workflow.init();
service = new WebTaskboxServiceImpl();
service.setTaskboxService(workflow);
service.setBundleContext(bundleContextMock);
service.setPersistenceManager(persistenceManager);