// 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.BillingAccountListResult;

public final class BillingAccountListResultTests {
    @org.junit.jupiter.api.Test
    public void testDeserialize() throws Exception {
        BillingAccountListResult model =
            BinaryData
                .fromString(
                    "{\"value\":[{\"properties\":{\"displayName\":\"uv\",\"agreementType\":\"MicrosoftPartnerAgreement\",\"accountType\":\"Individual\",\"accountStatus\":\"Extended\",\"departments\":[],\"enrollmentAccounts\":[],\"hasReadAccess\":true,\"notificationEmailAddress\":\"pbsphrupidgs\"},\"id\":\"bb\",\"name\":\"jhphoyc\",\"type\":\"sx\"},{\"properties\":{\"displayName\":\"hdxbmtqio\",\"agreementType\":\"EnterpriseAgreement\",\"accountType\":\"Individual\",\"accountStatus\":\"Expired\",\"departments\":[],\"enrollmentAccounts\":[],\"hasReadAccess\":false,\"notificationEmailAddress\":\"izhwlrxy\"},\"id\":\"qsoqijgkd\",\"name\":\"bpazlobcufpdzn\",\"type\":\"btcqq\"},{\"properties\":{\"displayName\":\"glhqg\",\"agreementType\":\"MicrosoftOnlineServicesProgram\",\"accountType\":\"Individual\",\"accountStatus\":\"Active\",\"departments\":[],\"enrollmentAccounts\":[],\"hasReadAccess\":false,\"notificationEmailAddress\":\"aagdfmg\"},\"id\":\"zlhjxrifkwmrvkt\",\"name\":\"izntocipao\",\"type\":\"ajpsquc\"}],\"nextLink\":\"o\"}")
                .toObject(BillingAccountListResult.class);
    }

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