@Before public void setUp() throws Exception { manager = new CollectionListManagerImpl(); accessControlUtils = mock(AccessControlUtils.class); when(accessControlUtils.hasAccess(any(PID.class), anyCollection(), anyString())) .thenReturn(true); manager.setAccessControlUtils(accessControlUtils); tripleStoreQueryService = mock(TripleStoreQueryService.class); manager.setTripleStoreQueryService(tripleStoreQueryService); config = new SwordConfigurationImpl(); config.setBasePath("https://localhost/services"); config.setSwordPath("https://localhost/services/sword"); config.setSwordVersion("1.3"); }