// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.purview.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.purview.models.CollectionAdminUpdate;
import org.junit.jupiter.api.Assertions;

public final class CollectionAdminUpdateTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        CollectionAdminUpdate model =
            BinaryData.fromString("{\"objectId\":\"xxhejjzzvd\"}").toObject(CollectionAdminUpdate.class);
        Assertions.assertEquals("xxhejjzzvd", model.objectId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        CollectionAdminUpdate model = new CollectionAdminUpdate().withObjectId("xxhejjzzvd");
        model = BinaryData.fromObject(model).toObject(CollectionAdminUpdate.class);
        Assertions.assertEquals("xxhejjzzvd", model.objectId());
    }
}
