diff --git a/datastore_server/sourceTest/java/ch/ethz/sis/openbis/generic/dss/systemtest/api/v3/DownloadFileTest.java b/datastore_server/sourceTest/java/ch/ethz/sis/openbis/generic/dss/systemtest/api/v3/DownloadFileTest.java
index 2430da121ddacff6af9a4265725bd80469741ab2..cde5d9ac4178d4e1e56160c1331f738369d11ccd 100644
--- a/datastore_server/sourceTest/java/ch/ethz/sis/openbis/generic/dss/systemtest/api/v3/DownloadFileTest.java
+++ b/datastore_server/sourceTest/java/ch/ethz/sis/openbis/generic/dss/systemtest/api/v3/DownloadFileTest.java
@@ -131,7 +131,7 @@ public class DownloadFileTest extends AbstractFileTest
         reader.read();
         DataSetFileDownload download3 = reader.read();
 
-        assertContent(IOUtils.toString(download3.getInputStream()), getPath("subdir1/file3.txt"));
+        assertContent(IOUtils.toString(download3.getInputStream()), download3.getDataSetFile().getPath());
     }
 
     @Test