takeSent method
The frames sent since the last call to this getter.
Handy between assertions: each step of a test sees only its own traffic.
Implementation
List<Object> takeSent() {
final List<Object> taken = List<Object>.of(sent);
sent.clear();
return taken;
}