@Test
public void testLookupContextWithString() {

	final DirContextAdapter expectedResult = new DirContextAdapter();
	final String expectedName = "cn=John Doe";
	LdapTemplate tested = new LdapTemplate() {
		public Object lookup(String dn) {
			assertThat(dn).isSameAs(expectedName);
			return expectedResult;
		}
	};
	DirContextOperations result = tested.lookupContext(expectedName);
	assertThat(result).isSameAs(expectedResult);
}