@Test
public void testGetSingleAttributeResult() {

    LdapSearcher ldapSearcher = new LdapSearcher(config);
    String attributeResult = ldapSearcher.search(CONTEXT, "(uid=john)").getSingleAttributeResult("uid");
    assertThat(attributeResult).isNotNull().isEqualTo("john");
}