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

package com.azure.resourcemanager.iothub.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.iothub.models.RouteErrorPosition;
import org.junit.jupiter.api.Assertions;

public final class RouteErrorPositionTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        RouteErrorPosition model =
            BinaryData.fromString("{\"line\":875285248,\"column\":1367629772}").toObject(RouteErrorPosition.class);
        Assertions.assertEquals(875285248, model.line());
        Assertions.assertEquals(1367629772, model.column());
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        RouteErrorPosition model = new RouteErrorPosition().withLine(875285248).withColumn(1367629772);
        model = BinaryData.fromObject(model).toObject(RouteErrorPosition.class);
        Assertions.assertEquals(875285248, model.line());
        Assertions.assertEquals(1367629772, model.column());
    }
}
