+ "\t\tpagerTelephoneNumber $ organizationalStatus $\n"
+ "\t\tmailPreferenceOption $ personalSignature )\n" + "\t)";
parser.parse( objectClassData );
List<ObjectClass> objectClassesList = parser.getObjectClassTypes();
Map<String, ObjectClass> objectClasses = mapObjectClasses( objectClassesList );
ObjectClass objectClass = objectClasses.get( "0.9.2342.19200300.100.4.4" );
assertNotNull( objectClass );
assertEquals( "0.9.2342.19200300.100.4.4", objectClass.getOid() );
assertEquals( "pilotPerson", objectClass.getName() );
assertEquals( "newPilotPerson", objectClass.getNames().get( 1 ) );
assertEquals( ObjectClassTypeEnum.STRUCTURAL, objectClass.getType() );
assertEquals( "person", objectClass.getSuperiorOids().get( 0 ) );
assertEquals( "userid", objectClass.getMayAttributeTypeOids().get( 0 ) );
assertEquals( "textEncodedORAddress", objectClass.getMayAttributeTypeOids().get( 1 ) );
assertEquals( "rfc822Mailbox", objectClass.getMayAttributeTypeOids().get( 2 ) );
assertEquals( "favouriteDrink", objectClass.getMayAttributeTypeOids().get( 3 ) );
assertEquals( "roomNumber", objectClass.getMayAttributeTypeOids().get( 4 ) );
assertEquals( "userClass", objectClass.getMayAttributeTypeOids().get( 5 ) );
assertEquals( "homeTelephoneNumber", objectClass.getMayAttributeTypeOids().get( 6 ) );
assertEquals( "homePostalAddress", objectClass.getMayAttributeTypeOids().get( 7 ) );
assertEquals( "secretary", objectClass.getMayAttributeTypeOids().get( 8 ) );
assertEquals( "personalTitle", objectClass.getMayAttributeTypeOids().get( 9 ) );
assertEquals( "preferredDeliveryMethod", objectClass.getMayAttributeTypeOids().get( 10 ) );
assertEquals( "businessCategory", objectClass.getMayAttributeTypeOids().get( 11 ) );
assertEquals( "janetMailbox", objectClass.getMayAttributeTypeOids().get( 12 ) );
assertEquals( "otherMailbox", objectClass.getMayAttributeTypeOids().get( 13 ) );
assertEquals( "mobileTelephoneNumber", objectClass.getMayAttributeTypeOids().get( 14 ) );
assertEquals( "pagerTelephoneNumber", objectClass.getMayAttributeTypeOids().get( 15 ) );
assertEquals( "organizationalStatus", objectClass.getMayAttributeTypeOids().get( 16 ) );
assertEquals( "mailPreferenceOption", objectClass.getMayAttributeTypeOids().get( 17 ) );
assertEquals( "personalSignature", objectClass.getMayAttributeTypeOids().get( 18 ) );
}