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

package com.azure.resourcemanager.logic.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.logic.fluent.models.JsonSchemaInner;
import org.junit.jupiter.api.Assertions;

public final class JsonSchemaInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        JsonSchemaInner model =
            BinaryData.fromString("{\"title\":\"t\",\"content\":\"twwrqp\"}").toObject(JsonSchemaInner.class);
        Assertions.assertEquals("t", model.title());
        Assertions.assertEquals("twwrqp", model.content());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        JsonSchemaInner model = new JsonSchemaInner().withTitle("t").withContent("twwrqp");
        model = BinaryData.fromObject(model).toObject(JsonSchemaInner.class);
        Assertions.assertEquals("t", model.title());
        Assertions.assertEquals("twwrqp", model.content());
    }
}
