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

package com.azure.resourcemanager.hybridcompute.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkServiceConnectionStateProperty;
import org.junit.jupiter.api.Assertions;

public final class PrivateLinkServiceConnectionStatePropertyTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        PrivateLinkServiceConnectionStateProperty model =
            BinaryData
                .fromString("{\"status\":\"dqgbiqylihkaetc\",\"description\":\"tvfcivfsn\",\"actionsRequired\":\"m\"}")
                .toObject(PrivateLinkServiceConnectionStateProperty.class);
        Assertions.assertEquals("dqgbiqylihkaetc", model.status());
        Assertions.assertEquals("tvfcivfsn", model.description());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        PrivateLinkServiceConnectionStateProperty model =
            new PrivateLinkServiceConnectionStateProperty().withStatus("dqgbiqylihkaetc").withDescription("tvfcivfsn");
        model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionStateProperty.class);
        Assertions.assertEquals("dqgbiqylihkaetc", model.status());
        Assertions.assertEquals("tvfcivfsn", model.description());
    }
}
