This fixes the dataprovider of a JPagination unittest. By fixing this, the test fails. That is expected! We still have to fix the test itself. This PR is basically a work in progress and a reminder. @wilsonge and I will work on this further in the future.
This has actually been fixed now and can be merged now!