public PartnerConnection createBinding( ConnectorConfig config ) throws ConnectionException {
    if ( this.binding == null ) {
      this.binding = new PartnerConnection( config );
    }
    return this.binding;
  }
@Test
  public void testCreateBinding() throws KettleException, ConnectionException {
    SalesforceConnection conn = new SalesforceConnection( null, "http://localhost:1234", "aUser", "aPass" );
    ConnectorConfig config = new ConnectorConfig();
    config.setAuthEndpoint( Connector.END_POINT );
    config.setManualLogin( true ); // Required to prevent connection attempt during test

    assertNull( conn.getBinding() );

    conn.createBinding( config );
    PartnerConnection binding1 = conn.getBinding();
    conn.createBinding( config );
    PartnerConnection binding2 = conn.getBinding();
    assertSame( binding1, binding2 );
  }