[FEATURE] Implement partial match testing in Java also for JRuby