Trying to mock using custom class instead