@Test
public void testToJsonObjectWithDictionaryProperties() throws Exception {

	JsonObjectIndexedRecordConverter jsonObjectIndexedRecordConverter =
		getJsonObjectIndexedRecordConverter(
			"/v1.0/catalogs/{siteId}/products", OASConstants.OPERATION_GET,
			readObject("openapi.json"));
	IndexedRecord indexedRecord =
		jsonObjectIndexedRecordConverter.toIndexedRecord(
			readObject("product_content.json"));
	IndexedRecordJsonObjectConverter indexedRecordJsonObjectConverter =
		new IndexedRecordJsonObjectConverter(
			true,
			getSchema(
				"/v1.0/catalogs/{siteId}/product",
				OASConstants.OPERATION_POST, readObject("openapi.json")),
			null, new Result());
	JsonObject jsonObject = indexedRecordJsonObjectConverter.toJsonObject(
		indexedRecord);
	JsonObject descriptionJsonObject = jsonObject.getJsonObject(
		"description");
	Assert.assertNotNull(descriptionJsonObject);
	Assert.assertEquals(
		"dictionary value", "Description of DXP Subscription",
		descriptionJsonObject.getString("en_US"));
}