Regardless of us liking it or not, events and things are going to happen to us which test us. Its simply part of life. But what matters is not the event per sey, but how we decide to respond. Its out response which tell a lot about our character and also shapes our character.
Accept the fact that many times events which are outside your control will happen, rather focus on how you respond. Really, that is what defines who you are and which further forms your characters.