private ClientConnection createClientConnection( int majorVersion, int minorVersion, ParsedIOR ior )
{
Profile profile = createMockProfile( majorVersion, minorVersion );
ClientGIOPConnection giopConnection = new ClientGIOPConnection( null, null, null, null, null );
ClientConnection connection = new ClientConnection( giopConnection, orb, null, profile, false );
ior.setProfileSelector( createMockProfileSelector( profile ) );
connection.setCodeSet( ior );
return connection;