GATEWAY-3312: Added missing unit test.