Mark AbstractService#setRepository as VisibleForTesting