Potency measurment

How potency of raw materials like heparin sulfate and testosterone is calculated?