User(firstName = "Rui", lastName = "Gonçalo", age = 28) val fabio = User(firstName = "Fábio", lastName = "Carballo", age = 26) rui.addFriend(fabio) assertEquals(listOf(fabio), rui.friends) // KLUENT rui.friends `should contain` fabio rui.friends `should not contain` rui // EXPEKT rui.friends.should.contain(fabio) fabio.friends.should.have.all.elements(rui).and.have.size(1) expect(rui.friends).to.contain(fabio) }