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

package com.azure.resourcemanager.hdinsight.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.hdinsight.models.ClientGroupInfo;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public final class ClientGroupInfoTests {
    @Test
    public void testDeserialize() {
        ClientGroupInfo model =
            BinaryData
                .fromString("{\"groupName\":\"crzevdphlx\",\"groupId\":\"lthqtrgqjbp\"}")
                .toObject(ClientGroupInfo.class);
        Assertions.assertEquals("crzevdphlx", model.groupName());
        Assertions.assertEquals("lthqtrgqjbp", model.groupId());
    }

    @Test
    public void testSerialize() {
        ClientGroupInfo model = new ClientGroupInfo().withGroupName("crzevdphlx").withGroupId("lthqtrgqjbp");
        model = BinaryData.fromObject(model).toObject(ClientGroupInfo.class);
        Assertions.assertEquals("crzevdphlx", model.groupName());
        Assertions.assertEquals("lthqtrgqjbp", model.groupId());
    }
}
