Add Java config integration tests (additionally to xml tests) for caching and jdbc