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

package com.azure.resourcemanager.appconfiguration.generated;

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

public final class ReplicaInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ReplicaInner model =
            BinaryData
                .fromString(
                    "{\"location\":\"eyueaxibxujwb\",\"properties\":{\"endpoint\":\"lmuzy\",\"provisioningState\":\"Succeeded\"},\"id\":\"epdkzja\",\"name\":\"cuxrhdwbavx\",\"type\":\"niwdjsw\"}")
                .toObject(ReplicaInner.class);
        Assertions.assertEquals("eyueaxibxujwb", model.location());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ReplicaInner model = new ReplicaInner().withLocation("eyueaxibxujwb");
        model = BinaryData.fromObject(model).toObject(ReplicaInner.class);
        Assertions.assertEquals("eyueaxibxujwb", model.location());
    }
}
