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

package com.azure.resourcemanager.maps.generated;

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

public final class MapsAccountPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        MapsAccountProperties model =
            BinaryData
                .fromString("{\"uniqueId\":\"wifsq\",\"disableLocalAuth\":false,\"provisioningState\":\"gdf\"}")
                .toObject(MapsAccountProperties.class);
        Assertions.assertEquals(false, model.disableLocalAuth());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        MapsAccountProperties model = new MapsAccountProperties().withDisableLocalAuth(false);
        model = BinaryData.fromObject(model).toObject(MapsAccountProperties.class);
        Assertions.assertEquals(false, model.disableLocalAuth());
    }
}
