I\'m looking for a similar solution for passing interface as paremeter in a function like Kotlin has:
test(object: Handler { override fun onComplete() {