TRUNK-4238: added test case