For testing?  Can't you just manipulate StackMob.refreshSession directly?