@Test
public void testWrite() throws Exception {

	JsonObject oasJsonObject = readObject("openapi_data_types.json");
	Schema entitySchema = getEntitySchema("BigDecimal", oasJsonObject);
	LiferayBatchFileProperties batchFileProperties =
		new LiferayBatchFileProperties(
			_testTemporaryDirectory.getAbsolutePath() + "/testOutput.jsonl",
			entitySchema, "batchFileProperties", oasJsonObject);
	LiferayMockRuntimeContainer liferayMockRuntimeContainer =
		new LiferayMockRuntimeContainer(batchFileProperties);
	LiferayBatchFileWriter liferayBatchFileWriter =
		new LiferayBatchFileWriter(
			new LiferayBatchFileWriteOperation(null),
			liferayMockRuntimeContainer);
	liferayBatchFileWriter.open("testUid");
	IndexedRecord indexedRecord = createIndexedRecordFromFile(
		"bigdecimal_content.json", entitySchema);
	Schema.Field idField = entitySchema.getField("id");
	idField.pos();
	for (int i = 1; i < 10; i++) {
		indexedRecord.put(idField.pos(), Long.valueOf(i));
		liferayBatchFileWriter.write(indexedRecord);
	}
	liferayBatchFileWriter.close();
}