import Ġkotlin . reflect . jvm .* Ċ import Ġkotlin . test .* Ċ var Ġfoo Ġ= Ġ" foo " Ċ class ĠA Ġ{ ĊĊ Ġvar Ġbar Ġ= Ġ" bar " Ċ Ċ } Ċ fun Ġbox (): ĠString Ġ{ Ċ val Ġfoo Getter Ġ= Ġ:: foo . getter . java Method Ġ?: Ġreturn Ġ" Fail Ġfoo Getter " Ċ assertEquals (" foo ", Ġfoo Getter . invoke ( null )) Ċ val Ġfoo Setter Ġ= Ġ:: foo . setter . java Method Ġ?: Ġreturn Ġ" Fail Ġfoo Setter " Ċ foo Setter . invoke ( null , Ġ" fo of ") Ċ assertEquals (" fo of ", Ġfoo ) Ċ assertNull (:: foo . getter . java Constructor ) Ċ assertNull (:: foo . setter . java Constructor ) Ċ val Ġa Ġ= ĠA () Ċ val Ġbar Getter Ġ= ĠA :: bar . getter . java Method Ġ?: Ġreturn Ġ" Fail Ġbar Getter " Ċ assertEquals (" bar ", Ġbar Getter . invoke ( a )) Ċ val Ġbar Setter Ġ= ĠA :: bar . setter . java Method Ġ?: Ġreturn Ġ" Fail Ġbar Setter " Ċ bar Setter . invoke ( a , Ġ" bar b ") Ċ assertEquals (" bar b ", Ġa . bar ) Ċ assertNull (( A )? :: bar . getter . java Constructor ) Ċ assertNull ( A :: bar . setter . java Constructor ) Ċ return Ġ" OK " Ċ }