How did Near get the death note from Mikami?

If I remember correctly, Near had one of his agents trail Mikami then snuck into his locker or case of some sort, then switch the death note that Mikami had for a fake one, created by Near's men.

Vigorously awesome :D