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

package com.azure.resourcemanager.billing.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.billing.models.EnrollmentAccountListResult;

public final class EnrollmentAccountListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        EnrollmentAccountListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"principalName\":\"f\"},\"id\":\"fcjnaeoisrvhmgor\",\"name\":\"fukiscvwmzhw\",\"type\":\"lefaxvxilcbtgn\"},{\"properties\":{\"principalName\":\"eyqxtjjfzql\"},\"id\":\"hycav\",\"name\":\"dggxdbeesmi\",\"type\":\"knlrariaawiuagy\"},{\"properties\":{\"principalName\":\"fbylyrfg\"},\"id\":\"agt\",\"name\":\"ojocqwogf\",\"type\":\"zjvusfzldmo\"}],\"nextLink\":\"xylfsb\"}")
                .toObject(EnrollmentAccountListResult.class);
    }

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