Bug 1121985 - Test scenario: Not working with Java enums

(cherry picked from commit 451eebede378457c563b2ad6be4359bb599f191a)