I am trying to write unit test of a class now I want to assign mock value to "tableTrans" but I dont know how to mock this part .subscribe