// 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.models.FleetHubProfile;
import org.junit.jupiter.api.Assertions;

public final class FleetHubProfileTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        FleetHubProfile model =
            BinaryData
                .fromString(
                    "{\"dnsPrefix\":\"fdfdosygexpa\",\"fqdn\":\"akhmsbzjhcrz\",\"kubernetesVersion\":\"dphlxaolt\"}")
                .toObject(FleetHubProfile.class);
        Assertions.assertEquals("fdfdosygexpa", model.dnsPrefix());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        FleetHubProfile model = new FleetHubProfile().withDnsPrefix("fdfdosygexpa");
        model = BinaryData.fromObject(model).toObject(FleetHubProfile.class);
        Assertions.assertEquals("fdfdosygexpa", model.dnsPrefix());
    }
}
