Separating unit and integration tests for TokenReplacer.