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

package com.azure.resourcemanager.logz.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.logz.models.LogzOrganizationProperties;
import org.junit.jupiter.api.Assertions;

public final class LogzOrganizationPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        LogzOrganizationProperties model =
            BinaryData
                .fromString(
                    "{\"companyName\":\"wzwbnguitn\",\"id\":\"izgazxu\",\"enterpriseAppId\":\"zuckyfi\",\"singleSignOnUrl\":\"fidfvzw\"}")
                .toObject(LogzOrganizationProperties.class);
        Assertions.assertEquals("wzwbnguitn", model.companyName());
        Assertions.assertEquals("zuckyfi", model.enterpriseAppId());
        Assertions.assertEquals("fidfvzw", model.singleSignOnUrl());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        LogzOrganizationProperties model =
            new LogzOrganizationProperties()
                .withCompanyName("wzwbnguitn")
                .withEnterpriseAppId("zuckyfi")
                .withSingleSignOnUrl("fidfvzw");
        model = BinaryData.fromObject(model).toObject(LogzOrganizationProperties.class);
        Assertions.assertEquals("wzwbnguitn", model.companyName());
        Assertions.assertEquals("zuckyfi", model.enterpriseAppId());
        Assertions.assertEquals("fidfvzw", model.singleSignOnUrl());
    }
}
