public void testCLOBDataScenarios(Object clobValue, String clobContent)
throws IOException, DBException, RepositoryException {
Map<String, Object> rowMap = getLargeObjectRow();
rowMap.put(dbContext.getLobField(), clobValue);
FileSizeLimitInfo fileSizeLimitInfo = new FileSizeLimitInfo();
fileSizeLimitInfo.setMaxDocumentSize(5);
context.setFileSizeLimitInfo(fileSizeLimitInfo);
JsonDocument clobDoc =
getJsonDocument(new LobDocumentBuilder(dbContext, context), rowMap);
// As the size of the document is more than supported, clobDoc should have
// null value.
assertNotNull(clobDoc);
assertEmptyContent(clobDoc);
// Increase the maximum supported size of the document.
fileSizeLimitInfo.setMaxDocumentSize(1024 * 1024);
context.setFileSizeLimitInfo(fileSizeLimitInfo);
clobDoc =
getJsonDocument(new LobDocumentBuilder(dbContext, context), rowMap);
assertNotNull(clobDoc);