@Test
public void testGetPredicateForInClauseOneChunk()
{

    // Create the JPA builder, query, and entity root.
    CriteriaBuilder builder = entityManager.getCriteriaBuilder();
    CriteriaQuery<BusinessObjectDataEntity> criteria = builder.createQuery(BusinessObjectDataEntity.class);
    Root<BusinessObjectDataEntity> businessObjectDataEntity = criteria.from(BusinessObjectDataEntity.class);
    // Get the predicate for the "in" clause with 1000 values.
    Predicate predicate = baseJpaDaoImpl
        .getPredicateForInClause(builder, businessObjectDataEntity.get(BusinessObjectDataEntity_.partitionValue), getPartitionValueList(1000));
    // We expect to get back an "in" predicate with a single chunk of 1000 partition values.
    assertTrue(predicate instanceof InPredicate);
    assertEquals(1000, ((InPredicate) predicate).getValues().size());
}