added unit test
Merge branch '7395' into 7562-udf-java