added java test