assertEquals( attrs.get( "userPassword" ).get(), me.getPassword() );
assertEquals( attrs.get( "userPassword" ).get(), "test".getBytes() );
    public void testObjectFactory() throws NamingException    {        super.sysRoot.addToEnvironment( Context.OBJECT_FACTORIES, PersonObjectFactory.class.getName() );        Object obj = super.sysRoot.lookup( "uid=akarasulu, ou=users" );        Attributes attrs = super.sysRoot.getAttributes( "uid=akarasulu, ou=users" );        assertEquals( Person.class, obj.getClass() );        Person me = ( Person ) obj;        assertEquals( attrs.get( "sn" ).get(), me.getLastname() );        assertEquals( attrs.get( "cn" ).get(), me.getCn() );        assertEquals( attrs.get( "userPassword" ).get(), me.getPassword() );        assertEquals( attrs.get( "telephonenumber" ).get(), me.getTelephoneNumber() );        assertNull( me.getSeealso() );        assertNull( me.getDescription() );    }