We require integration tests, to do this we will meed to mock a user, who allows us to test the swing functionality.