upgrade to java 1.8
add by example test