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

package com.azure.resourcemanager.azurestack.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.azurestack.fluent.models.RegistrationProperties;
import org.junit.jupiter.api.Assertions;

public final class RegistrationPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        RegistrationProperties model =
            BinaryData
                .fromString("{\"objectId\":\"spnqzahmgkb\",\"cloudId\":\"yydhibnuqqk\",\"billingModel\":\"kadrgvt\"}")
                .toObject(RegistrationProperties.class);
        Assertions.assertEquals("spnqzahmgkb", model.objectId());
        Assertions.assertEquals("yydhibnuqqk", model.cloudId());
        Assertions.assertEquals("kadrgvt", model.billingModel());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        RegistrationProperties model =
            new RegistrationProperties()
                .withObjectId("spnqzahmgkb")
                .withCloudId("yydhibnuqqk")
                .withBillingModel("kadrgvt");
        model = BinaryData.fromObject(model).toObject(RegistrationProperties.class);
        Assertions.assertEquals("spnqzahmgkb", model.objectId());
        Assertions.assertEquals("yydhibnuqqk", model.cloudId());
        Assertions.assertEquals("kadrgvt", model.billingModel());
    }
}
