@VisibleForTesting
    public MusicProtocol.ImportMusicPlaylistsResponse importPlaylistsBatch(final String jobId, List<MusicPlaylist> musicPlaylistsBatch)
            throws IOException, CopyException, URISyntaxException {
        final ImportMusicPlaylistsRequest.Builder requestBuilder = ImportMusicPlaylistsRequest.newBuilder();

        List<MusicProtocol.MusicPlaylist> convertedMusicPlaylists = AppleMusicPlaylistConverter.convertToAppleMusicPlaylist(musicPlaylistsBatch);
        requestBuilder.setImportSessionId(jobId);
        requestBuilder.addAllMusicPlaylist(convertedMusicPlaylists);
        if (JobMetadata.getExportService() != null) {
            requestBuilder.setExportService(JobMetadata.getExportService());
        }

        final byte[] responseBody = _sendPostRequest(baseUrl + API.V1.PLAYLISTS, requestBuilder.build().toByteArray());

        return MusicProtocol.ImportMusicPlaylistsResponse.parseFrom(responseBody);
    }
@return the total number of playlists acknowledged by the Apple Music Library Service in this page
extensions/data-transfer/portability-data-transfer-apple/src/main/java/org/datatransferproject/datatransfer/apple/music/AppleMusicInterface.java