@Test
public void shouldBuildUserDnFromCredentials() {

    final String userDn = testee.userDnFrom(new Credentials("user", "password"), "someBaseDn");
    assertThat(userDn).isEqualTo("someRdnIdentifier=user,someBaseDn");
}