[Algo] tested scala java interoperability.