This is a bit of a hack that allows me to "fake" the LoginAPI in the unit tests