@Test
public void testConstructAdapterFromName_Ldaps() throws InvalidNameException {

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