so, ```val person : Person? = ... possibly null pe...
# kotlintest
s
so,
Copy code
val person : Person? = ... possibly null person
person whenNotNull { 
  it.name.shouldHaveLength(12)
  it.age should beGreaterThan(21)
}
Which I believe is what you want, but the keyword "whenNotNull" needs to be something a bit catchier.