Fix for DEV-KIT-421. Adding support for Enums in Pojos. Adding tests.