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

package com.azure.resourcemanager.cognitiveservices.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.cognitiveservices.models.UserOwnedStorage;
import org.junit.jupiter.api.Assertions;

public final class UserOwnedStorageTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        UserOwnedStorage model =
            BinaryData
                .fromString("{\"resourceId\":\"zitonpeqfpjkjl\",\"identityClientId\":\"fpdvhpfxxypi\"}")
                .toObject(UserOwnedStorage.class);
        Assertions.assertEquals("zitonpeqfpjkjl", model.resourceId());
        Assertions.assertEquals("fpdvhpfxxypi", model.identityClientId());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        UserOwnedStorage model =
            new UserOwnedStorage().withResourceId("zitonpeqfpjkjl").withIdentityClientId("fpdvhpfxxypi");
        model = BinaryData.fromObject(model).toObject(UserOwnedStorage.class);
        Assertions.assertEquals("zitonpeqfpjkjl", model.resourceId());
        Assertions.assertEquals("fpdvhpfxxypi", model.identityClientId());
    }
}
