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

package com.azure.resourcemanager.education.generated;

import com.azure.core.util.BinaryData;
import com.azure.resourcemanager.education.fluent.models.GrantDetailsInner;
import org.junit.jupiter.api.Test;

public final class GrantDetailsInnerTests {
    @Test
    public void testDeserialize() {
        GrantDetailsInner model =
            BinaryData
                .fromString(
                    "{\"properties\":{\"offerCap\":{\"currency\":\"rtfw\",\"value\":0.16884804},\"effectiveDate\":\"2021-05-02T17:53:53Z\",\"offerType\":\"Academic\",\"expirationDate\":\"2021-05-03T09:30:55Z\",\"status\":\"Inactive\",\"allocatedBudget\":{\"currency\":\"s\",\"value\":80.03657}},\"id\":\"ejhkry\",\"name\":\"tnapczwlokjyemkk\",\"type\":\"ni\"}")
                .toObject(GrantDetailsInner.class);
    }

    @Test
    public void testSerialize() {
        GrantDetailsInner model = new GrantDetailsInner();
        model = BinaryData.fromObject(model).toObject(GrantDetailsInner.class);
    }
}
