Added java test case for enums