Pakistan's former Test cricket captain found himself accused of spot-fixing only after a former agent and friend "grossly abused" his trust, a court heard on Monday.