``` val user: Observable<User> = userId.f...
# rx
v
Copy code
val user: Observable<User> = userId.flatMap { Db.getUser(it) }
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_check_balance)

        bindViews()
    }

    fun bindViews() {
        user.subscribe { showUserProfileDialog(it) }
    }
this is my activity look like. I don't think I can just replace
val user
in order to mock the observable. Otherwise my test would have to tell the activity to
bindViews()
again. Am I right? I’m really new with testing here 😛