```Hello here How do you write a test for this fun...
# test
s
Copy code
Hello here
How do you write a test for this function using mockito?
fun foo(onLoad: (String) -> Unit) {
 var bar = “some string”
 onLoad(bar)
}