pub fn peer_connection_state_was<S>(
    address: Address,
    state: ConnectionState
) -> Predicate<S>
where S: 'static + AsRef<EmulatorState>,