Fix MongoDB java17 tests

Aleh Shubko [EPAM] requested to merge ashubko/fix-java17-migration into master

Fix test running image for java 17

Merge request reports