@Test
public void testToIndexedRecordIfBigDecimalPropertyPresent() {

	JsonObjectIndexedRecordConverter jsonObjectIndexedRecordConverter =
		getJsonObjectIndexedRecordConverter(
			"/v1.0/bigdecimal/{id}", OASConstants.OPERATION_GET,
			readObject("openapi_data_types.json"));
	IndexedRecord indexedRecord =
		jsonObjectIndexedRecordConverter.toIndexedRecord(
			readObject("bigdecimal_content.json"));
	Assert.assertNotNull(
		"Attachment is converted to indexed record", indexedRecord);
	Object bigDecimal1 = indexedRecord.get(
		_posOf("bigDecimal1", indexedRecord.getSchema()));
	Assert.assertEquals(
		"BigDecimal 1 field type", BigDecimal.class,
		bigDecimal1.getClass());
	Assert.assertEquals(
		"BigDecimal 1 field value", new BigDecimal("1.97797"), bigDecimal1);
	Object bigDecimal2 = indexedRecord.get(
		_posOf("bigDecimal2", indexedRecord.getSchema()));
	Assert.assertEquals(
		"BigDecimal 2 field type", BigDecimal.class,
		bigDecimal2.getClass());
	Assert.assertEquals(
		"BigDecimal 2 field value", new BigDecimal("1.97797E-17"),
		bigDecimal2);
	Object doubleObject = indexedRecord.get(
		_posOf("double", indexedRecord.getSchema()));
	Assert.assertEquals(
		"Double field type", Double.class, doubleObject.getClass());
	Assert.assertEquals(
		"Double field value", Double.valueOf("19779.7"), doubleObject);
	Object priceFloat = indexedRecord.get(
		_posOf("float", indexedRecord.getSchema()));
	Assert.assertEquals(
		"Float field type", Float.class, priceFloat.getClass());
	Assert.assertEquals(
		"Float field value", Float.valueOf("19.7797"), priceFloat);
	Object priceNumber = indexedRecord.get(
		_posOf("number", indexedRecord.getSchema()));
	Assert.assertEquals(
		"Number field type", BigDecimal.class, priceNumber.getClass());
	Assert.assertEquals(
		"Number field value", new BigDecimal("1977.97"), priceNumber);
}