You are not interested in the close being called in this test. There are other tests for testing this. You just have to test that

```dart
createLoopBackConnection.getLogs(callsTo('call', requestHandler, userId)).verify(happenedOnce);
```