test https://stackoverflow.com/questions/55528032/how-to-export-scala-transformation-to-java/55530113