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

package com.azure.resourcemanager.vmwarecloudsimple.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.vmwarecloudsimple.models.CustomizationHostname;
import com.azure.resourcemanager.vmwarecloudsimple.models.CustomizationHostnameType;
import org.junit.jupiter.api.Assertions;

public final class CustomizationHostnameTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        CustomizationHostname model =
            BinaryData.fromString("{\"name\":\"qnajxqugj\",\"type\":\"FIXED\"}").toObject(CustomizationHostname.class);
        Assertions.assertEquals("qnajxqugj", model.name());
        Assertions.assertEquals(CustomizationHostnameType.FIXED, model.type());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        CustomizationHostname model =
            new CustomizationHostname().withName("qnajxqugj").withType(CustomizationHostnameType.FIXED);
        model = BinaryData.fromObject(model).toObject(CustomizationHostname.class);
        Assertions.assertEquals("qnajxqugj", model.name());
        Assertions.assertEquals(CustomizationHostnameType.FIXED, model.type());
    }
}
