diff --git a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/AbstractServerTestCase.java b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/AbstractServerTestCase.java
index 6d92a813a43f8f248007c44ff6a34220251277fc..0bb0e3f0904ab1c9b5b70392efffed6e72e444be 100644
--- a/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/AbstractServerTestCase.java
+++ b/openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/shared/AbstractServerTestCase.java
@@ -46,6 +46,7 @@ import ch.systemsx.cisd.openbis.generic.server.business.bo.materiallister.IMater
 import ch.systemsx.cisd.openbis.generic.server.dataaccess.IAttachmentDAO;
 import ch.systemsx.cisd.openbis.generic.server.dataaccess.IDAOFactory;
 import ch.systemsx.cisd.openbis.generic.server.dataaccess.IDataSetTypeDAO;
+import ch.systemsx.cisd.openbis.generic.server.dataaccess.IDataStoreDAO;
 import ch.systemsx.cisd.openbis.generic.server.dataaccess.IDatabaseInstanceDAO;
 import ch.systemsx.cisd.openbis.generic.server.dataaccess.IEntityTypeDAO;
 import ch.systemsx.cisd.openbis.generic.server.dataaccess.IExperimentDAO;
@@ -157,6 +158,8 @@ public abstract class AbstractServerTestCase extends AssertJUnit
 
     protected IDatasetLister datasetLister;
 
+    protected IDataStoreDAO dataStoreDAO;
+
     @BeforeMethod
     @SuppressWarnings("unchecked")
     public void setUp()
@@ -184,6 +187,7 @@ public abstract class AbstractServerTestCase extends AssertJUnit
         fileFormatDAO = context.mock(IFileFormatTypeDAO.class);
         dataSetTypeDAO = context.mock(IDataSetTypeDAO.class);
         vocabularyDAO = context.mock(IVocabularyDAO.class);
+        dataStoreDAO = context.mock(IDataStoreDAO.class);
         // BO
         groupBO = context.mock(IGroupBO.class);
         entityTypeBO = context.mock(IEntityTypeBO.class);
@@ -230,6 +234,8 @@ public abstract class AbstractServerTestCase extends AssertJUnit
                     will(returnValue(fileFormatDAO));
                     allowing(daoFactory).getDataSetTypeDAO();
                     will(returnValue(dataSetTypeDAO));
+                    allowing(daoFactory).getDataStoreDAO();
+                    will(returnValue(dataStoreDAO));
                 }
             });
     }