myanmarking
08/14/2017, 2:02 PMMockito.`when`(mainInteractor.findAllModules())
.thenReturn(Flowable.just(moduleList))
mainInteractor.findAllModules()
.filter { it.isNotEmpty() }
.subscribeOn(<http://Schedulers.io|Schedulers.io>())
.observeOn(AndroidSchedulers.mainThread())
.test()
.assertResult(moduleList)