test enum in jdk5