protected DataStructures.Sync SyncEmail(string subject, string collectionId, bool? rightsManagementSupport, bool isRetryNeeded)
{
SyncRequest syncRequest = Common.CreateInitialSyncRequest(collectionId);
DataStructures.SyncStore initSyncResult = this.ASRMAdapter.Sync(syncRequest);
// Verify sync change result
this.Site.Assert.AreEqual<byte>(1, initSyncResult.CollectionStatus, "If the Sync command executes successfully, the Status in response should be 1.");
syncRequest = TestSuiteHelper.CreateSyncRequest(initSyncResult.SyncKey, collectionId, rightsManagementSupport);
DataStructures.Sync sync = this.ASRMAdapter.SyncEmail(syncRequest, subject, isRetryNeeded);
return sync;
}