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

package com.azure.resourcemanager.machinelearning.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.machinelearning.models.IdentityForCmk;
import org.junit.jupiter.api.Assertions;

public final class IdentityForCmkTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        IdentityForCmk model =
            BinaryData.fromString("{\"userAssignedIdentity\":\"hanufhfcbjysagi\"}").toObject(IdentityForCmk.class);
        Assertions.assertEquals("hanufhfcbjysagi", model.userAssignedIdentity());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        IdentityForCmk model = new IdentityForCmk().withUserAssignedIdentity("hanufhfcbjysagi");
        model = BinaryData.fromObject(model).toObject(IdentityForCmk.class);
        Assertions.assertEquals("hanufhfcbjysagi", model.userAssignedIdentity());
    }
}
