How to test cancel,renew and expiring subscription in In app subscription through sandbox manage?

Can you please help me here,

We need to test In app subscription in Sandbox so that we can replicate these conditions :

1. when subscription renewed

2. when subscription expired

3. when subscription cancelled