final ObjectName objectName = createObjectName( "test" + i, "" + i );
objectNames[ i ] = objectName;
prefixes[ i ] = prefix;
reg.addMapping( objectName, prefix, attrs );
assert( reg.getPrefix( objectName ) == prefix );
assert( reg.getObjectName( prefix ) == objectName );
assert( reg.getLegalAttributes( objectName ).equals( attrs ) );
}