This need to stub external details makes me question there is a better implementation around. Regardless, these can be DRYed out a bit.