Add two new test cases for jdbc part

Comment From: mdeinum

Contains code related to https://github.com/spring-projects/spring-framework/pull/28454 and not only 2 JDBC tests... You might want to clean that up.