@Test
public void testConstructAdapterFromName_EmptyName() throws InvalidNameException {

	CompositeName name = new CompositeName();
	name.add("ldap://localhost:389");
	DefaultDirObjectFactory tested = new DefaultDirObjectFactory();
	DirContextAdapter result = tested.constructAdapterFromName(new BasicAttributes(), name, "");
	assertThat(result.getDn().toString()).isEqualTo("");
	assertThat(result.getReferralUrl().toString()).isEqualTo("ldap://localhost:389");
}