Set test expectation on PublishingApi.republish.