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

package com.azure.resourcemanager.education.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.education.models.Operation;
import com.azure.resourcemanager.education.models.OperationDisplay;
import org.junit.jupiter.api.Test;

public final class OperationTests {
    @Test
    public void testDeserialize() {
        Operation model =
            BinaryData
                .fromString(
                    "{\"name\":\"usarhmofc\",\"isDataAction\":false,\"display\":{\"provider\":\"urkdtmlx\",\"resource\":\"kuksjtxukcdm\",\"operation\":\"rcryuanzwuxzdxta\",\"description\":\"lhmwhfpmrqobm\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}")
                .toObject(Operation.class);
    }

    @Test
    public void testSerialize() {
        Operation model = new Operation().withDisplay(new OperationDisplay());
        model = BinaryData.fromObject(model).toObject(Operation.class);
    }
}
