@Test
public void testComplexEmail() {

    Map<String, Object> settings = getSettings();
    settings.put("emailMapping", "${givenName}.${surname}@gitblit.com");
    ldap = newRealm(settings);
    Account userOne = ldap.authenticate("UserOne", "userOnePassword");
    assertNotNull(userOne);
    assertTrue(userOne.getEmailAddresses().contains("User.One@gitblit.com"));
}