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

package com.azure.resourcemanager.cognitiveservices.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.cognitiveservices.models.CheckDomainAvailabilityParameter;
import org.junit.jupiter.api.Assertions;

public final class CheckDomainAvailabilityParameterTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        CheckDomainAvailabilityParameter model =
            BinaryData
                .fromString("{\"subdomainName\":\"bpvjymjhx\",\"type\":\"j\",\"kind\":\"gudivkrtswbxqz\"}")
                .toObject(CheckDomainAvailabilityParameter.class);
        Assertions.assertEquals("bpvjymjhx", model.subdomainName());
        Assertions.assertEquals("j", model.type());
        Assertions.assertEquals("gudivkrtswbxqz", model.kind());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        CheckDomainAvailabilityParameter model =
            new CheckDomainAvailabilityParameter()
                .withSubdomainName("bpvjymjhx")
                .withType("j")
                .withKind("gudivkrtswbxqz");
        model = BinaryData.fromObject(model).toObject(CheckDomainAvailabilityParameter.class);
        Assertions.assertEquals("bpvjymjhx", model.subdomainName());
        Assertions.assertEquals("j", model.type());
        Assertions.assertEquals("gudivkrtswbxqz", model.kind());
    }
}
