Mock LocalClient in batch unit tests