JBIDE-18412 - added unit test