diff --git a/authentication/sourceTest/java/ch/systemsx/cisd/authentication/ldap/LDAPDirectoryConfigurationTest.java b/authentication/sourceTest/java/ch/systemsx/cisd/authentication/ldap/LDAPDirectoryConfigurationTest.java
index 358ff52d13bb760a8c49767c454770fe265d36dd..b9a518f92d94e81ff64d7b03a8709e48c16ff3e4 100644
--- a/authentication/sourceTest/java/ch/systemsx/cisd/authentication/ldap/LDAPDirectoryConfigurationTest.java
+++ b/authentication/sourceTest/java/ch/systemsx/cisd/authentication/ldap/LDAPDirectoryConfigurationTest.java
@@ -38,4 +38,12 @@ public class LDAPDirectoryConfigurationTest
         assertEquals(LDAPDirectoryConfiguration.DEFAULT_QUERY_TEMPLATE, config.getQueryTemplate());
     }
 
+    @Test
+    public void testLDAPDirectoryConfigurationResolvedVariableQueryTemplate()
+    {
+        final LDAPDirectoryConfiguration config = new LDAPDirectoryConfiguration();
+        final String bsseQueryTemplate = "(&(objectClass=bssePosixAccount)(%s))";
+        config.setQueryTemplate(bsseQueryTemplate);
+        assertEquals(bsseQueryTemplate, config.getQueryTemplate());
+    }
 }