### Question:
NameRepository { public Single<String> getName() { return Single.create( emitter -> { Gson gson = new Gson(); emitter.onSuccess(gson.fromJson(fileReader.readFile(), User.class).name); }); } NameRepository(FileReader fileReader); Single<String> getName();  }### Answer:
@Test public void getName() { TestObserver<String> observer = nameRepository.getName().test(); observer.assertValue("Sasha"); }