``` Mockito.`when`(mainInteractor.findAllModules()...
# rx
m
Copy code
Mockito.`when`(mainInteractor.findAllModules())
                .thenReturn(Flowable.just(moduleList))


        mainInteractor.findAllModules()
                .filter { it.isNotEmpty() }
                .subscribeOn(<http://Schedulers.io|Schedulers.io>())
                .observeOn(AndroidSchedulers.mainThread())
                .test()
                .assertResult(moduleList)