key

fun <K, V> Assert<Map<K, V>>.key(key: K): Assert<V>

Returns an assert that asserts on the value at the given key in the map.

assertThat(mapOf("key" to "value")).key("key").isEqualTo("value")