For example numerous corporations will "sell" a product to a subsidiary that is located in, e.g., Cayman, at a big loss and then re-sell it to the buyer of the goods in the US at a profit. The profit is derived in Cayman thus Cayman taxes on profits (or lack thereof) apply.
This is a pretty easy fix. You just don't give effect to the sham transaction. Voila.