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

package com.azure.resourcemanager.devtestlabs.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.devtestlabs.models.HourDetails;
import org.junit.jupiter.api.Assertions;

public final class HourDetailsTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        HourDetails model = BinaryData.fromString("{\"minute\":830050857}").toObject(HourDetails.class);
        Assertions.assertEquals(830050857, model.minute());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        HourDetails model = new HourDetails().withMinute(830050857);
        model = BinaryData.fromObject(model).toObject(HourDetails.class);
        Assertions.assertEquals(830050857, model.minute());
    }
}
