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

package com.azure.resourcemanager.communication.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.communication.models.DnsRecord;
import com.azure.resourcemanager.communication.models.DomainPropertiesVerificationRecords;

public final class DomainPropertiesVerificationRecordsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        DomainPropertiesVerificationRecords model =
            BinaryData
                .fromString(
                    "{\"Domain\":{\"type\":\"pteehzzv\",\"name\":\"yqrimzin\",\"value\":\"swjdkirso\",\"ttl\":1633669342},\"SPF\":{\"type\":\"crmnohjtckwhds\",\"name\":\"fiyipjxsqwpgrj\",\"value\":\"norcjxvsnbyxqab\",\"ttl\":1299140464},\"DKIM\":{\"type\":\"cyshurzafbljjgp\",\"name\":\"oq\",\"value\":\"mkljavb\",\"ttl\":1581174340},\"DKIM2\":{\"type\":\"ajzyul\",\"name\":\"u\",\"value\":\"krlkhbzhfepg\",\"ttl\":701234104},\"DMARC\":{\"type\":\"zloc\",\"name\":\"c\",\"value\":\"ierhhbcsglummaj\",\"ttl\":1273206758}}")
                .toObject(DomainPropertiesVerificationRecords.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        DomainPropertiesVerificationRecords model =
            new DomainPropertiesVerificationRecords()
                .withDomain(new DnsRecord())
                .withSpf(new DnsRecord())
                .withDkim(new DnsRecord())
                .withDkim2(new DnsRecord())
                .withDmarc(new DnsRecord());
        model = BinaryData.fromObject(model).toObject(DomainPropertiesVerificationRecords.class);
    }
}
