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

package com.azure.resourcemanager.purview.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.purview.models.OperationMetaLogSpecification;
import org.junit.jupiter.api.Assertions;

public final class OperationMetaLogSpecificationTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        OperationMetaLogSpecification model =
            BinaryData
                .fromString("{\"blobDuration\":\"oxgvclt\",\"displayName\":\"sncghkjeszz\",\"name\":\"ijhtxf\"}")
                .toObject(OperationMetaLogSpecification.class);
        Assertions.assertEquals("oxgvclt", model.blobDuration());
        Assertions.assertEquals("sncghkjeszz", model.displayName());
        Assertions.assertEquals("ijhtxf", model.name());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        OperationMetaLogSpecification model =
            new OperationMetaLogSpecification()
                .withBlobDuration("oxgvclt")
                .withDisplayName("sncghkjeszz")
                .withName("ijhtxf");
        model = BinaryData.fromObject(model).toObject(OperationMetaLogSpecification.class);
        Assertions.assertEquals("oxgvclt", model.blobDuration());
        Assertions.assertEquals("sncghkjeszz", model.displayName());
        Assertions.assertEquals("ijhtxf", model.name());
    }
}
