// 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.LogFileInner;
import org.junit.jupiter.api.Assertions;

public final class LogFileInnerTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        LogFileInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"sizeInKB\":5129856498527307035,\"createdTime\":\"2021-03-29T14:33:29Z\",\"lastModifiedTime\":\"2021-10-01T21:26:02Z\",\"type\":\"usue\",\"url\":\"zwdejbavor\"},\"id\":\"zdmohctbqvu\",\"name\":\"wxdndnvowgujjug\",\"type\":\"dkcglhsl\"}")
                .toObject(LogFileInner.class);
        Assertions.assertEquals(5129856498527307035L, model.sizeInKB());
        Assertions.assertEquals("usue", model.typePropertiesType());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        LogFileInner model = new LogFileInner().withSizeInKB(5129856498527307035L).withTypePropertiesType("usue");
        model = BinaryData.fromObject(model).toObject(LogFileInner.class);
        Assertions.assertEquals(5129856498527307035L, model.sizeInKB());
        Assertions.assertEquals("usue", model.typePropertiesType());
    }
}
