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

package com.azure.resourcemanager.mariadb.generated;

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

public final class QueryTextPropertiesTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        QueryTextProperties model =
            BinaryData
                .fromString("{\"queryId\":\"frzpwvlqdqgb\",\"queryText\":\"ylihkaetckt\"}")
                .toObject(QueryTextProperties.class);
        Assertions.assertEquals("frzpwvlqdqgb", model.queryId());
        Assertions.assertEquals("ylihkaetckt", model.queryText());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        QueryTextProperties model = new QueryTextProperties().withQueryId("frzpwvlqdqgb").withQueryText("ylihkaetckt");
        model = BinaryData.fromObject(model).toObject(QueryTextProperties.class);
        Assertions.assertEquals("frzpwvlqdqgb", model.queryId());
        Assertions.assertEquals("ylihkaetckt", model.queryText());
    }
}
