ctx.rename( DN, NEW_DN2 );
SearchControls controls = new SearchControls();
controls.setSearchScope( SearchControls.OBJECT_SCOPE );
NamingEnumeration<SearchResult> results = ctx.search( NEW_DN2, "(objectClass=*)", controls );
assertNotNull( results );
assertTrue( "Could not find entry after move.", results.hasMore() );
SearchResult result = results.next();
assertNotNull( result );
assertEquals( NEW_DN2, result.getNameInNamespace() );