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

package com.azure.resourcemanager.containerservicefleet.generated;

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

public final class FleetMemberPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        FleetMemberProperties model =
            BinaryData
                .fromString(
                    "{\"clusterResourceId\":\"xolniwpwcukjfk\",\"group\":\"awxklr\",\"provisioningState\":\"Failed\"}")
                .toObject(FleetMemberProperties.class);
        Assertions.assertEquals("xolniwpwcukjfk", model.clusterResourceId());
        Assertions.assertEquals("awxklr", model.group());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        FleetMemberProperties model =
            new FleetMemberProperties().withClusterResourceId("xolniwpwcukjfk").withGroup("awxklr");
        model = BinaryData.fromObject(model).toObject(FleetMemberProperties.class);
        Assertions.assertEquals("xolniwpwcukjfk", model.clusterResourceId());
        Assertions.assertEquals("awxklr", model.group());
    }
}
