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

package com.azure.resourcemanager.apimanagement.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.apimanagement.models.ConnectivityHop;

public final class ConnectivityHopTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        ConnectivityHop model =
            BinaryData
                .fromString(
                    "{\"type\":\"inkfscj\",\"id\":\"cjwvuagfqwtltngv\",\"address\":\"e\",\"resourceId\":\"trklzmijajwol\",\"nextHopIds\":[\"vaghmpy\"],\"issues\":[{\"origin\":\"Local\",\"severity\":\"Error\",\"type\":\"UserDefinedRoute\",\"context\":[{\"vyxpavidni\":\"cvbxqlapsnss\",\"xgcbdsvalpnpt\":\"vwffcvvyezslp\",\"x\":\"trkxgpazwu\"}]},{\"origin\":\"Local\",\"severity\":\"Error\",\"type\":\"NetworkSecurityRule\",\"context\":[{\"aewzgiudjp\":\"hldiuhzzgqlm\"},{\"sdsu\":\"qhttqhnmhkre\"}]},{\"origin\":\"Outbound\",\"severity\":\"Warning\",\"type\":\"Unknown\",\"context\":[{\"m\":\"spiny\"}]}]}")
                .toObject(ConnectivityHop.class);
    }

    @org.junit.jupiter.api.Test
    public void testSerialize() throws Exception {
        ConnectivityHop model = new ConnectivityHop();
        model = BinaryData.fromObject(model).toObject(ConnectivityHop.class);
    }
}
