Add tests for the JSON decoder.

These tests will test the bej_decoder_core.c as well.

Signed-off-by: Kasun Athukorala <kasunath@google.com>
Change-Id: Ibf1c9a381a630beac09ed504dd57563160579fb0
diff --git a/test/json/circuit.json b/test/json/circuit.json
new file mode 100644
index 0000000..b40a0c0
--- /dev/null
+++ b/test/json/circuit.json
@@ -0,0 +1,72 @@
+{
+ "@odata.type": "#Circuit.v1_0_0.Circuit",
+    "Id": "A",
+    "Name": "Branch Circuit A",
+    "Status": {
+        "State": "Enabled",
+        "Health": "OK"
+    },
+    "CircuitType": "Branch",
+    "PhaseWiringType": "TwoPhase3Wire",
+    "NominalVoltage": "AC200To240V",
+    "RatedCurrentAmps": 16.0,
+    "BreakerState": "Normal",
+    "PolyPhaseVoltage": {
+        "Line1ToNeutral": {
+            "DataSourceUri": "/redfish/v1/PowerEquipment/RackPDUs/1/Sensors/VoltageAL1N",
+            "Reading": 118.2
+        },
+        "Line1ToLine2": {
+            "DataSourceUri": "/redfish/v1/PowerEquipment/RackPDUs/1/Sensors/VoltageAL1L2",
+            "Reading": 203.5
+        }
+    },
+    "CurrentAmps": {
+        "DataSourceUri": "/redfish/v1/PowerEquipment/RackPDUs/1/Sensors/CurrentA",
+        "Reading": 5.19
+    },
+    "PolyPhaseCurrentAmps": {
+        "Line1": {
+            "DataSourceUri": "/redfish/v1/PowerEquipment/RackPDUs/1/Sensors/CurrentA",
+            "Reading": 5.19
+        }
+    },
+    "PowerWatts": {
+        "DataSourceUri": "/redfish/v1/PowerEquipment/RackPDUs/1/Sensors/PowerA",
+        "Reading": 937.4,
+        "ApparentVA": 937.4,
+        "ReactiveVAR": 0.0,
+        "PowerFactor": 1.0
+    },
+    "PolyPhasePowerWatts": {
+        "Line1ToNeutral": {
+            "DataSourceUri": "/redfish/v1/PowerEquipment/RackPDUs/1/Sensors/PowerA1",
+            "Reading": 937.4,
+            "ApparentVA": 937.4,
+            "ReactiveVAR": 0.0,
+            "PowerFactor": 1.0
+        }
+    },
+    "FrequencyHz": {
+        "DataSourceUri": "/redfish/v1/PowerEquipment/RackPDUs/1/Sensors/FrequencyA",
+        "Reading": 60.0
+    },
+    "EnergykWh": {
+        "DataSourceUri": "/redfish/v1/PowerEquipment/RackPDUs/1/Sensors/EnergyA",
+        "Reading": 325675.0
+    },
+    "Links": {
+        "Outlets": [
+            {
+                "@odata.id": "/redfish/v1/PowerEquipment/RackPDUs/1/Outlets/A1"
+            },
+            {
+                "@odata.id": "/redfish/v1/PowerEquipment/RackPDUs/1/Outlets/A2"
+            },
+            {
+                "@odata.id": "/redfish/v1/PowerEquipment/RackPDUs/1/Outlets/A3"
+            }
+        ]
+    },
+    "@odata.id": "/redfish/v1/PowerEquipment/RackPDUs/1/Branches/A"
+}