add more unit tests for JavaType impl (for enum)