### Question:
UserRepository { public Completable putOrPostUser(String userName, String password) { return Completable.fromAction(() -> userDao.insert(new UserEntity(userName, password))); } @Inject  UserRepository(UserDao userDao); Single<UserEntity> getUser(); Completable putOrPostUser(String userName, String password); Completable deleteUser();  }### Answer:
@Test public void putOrPostUser_insertsUser() { repo.putOrPostUser("testUser", "testPassword") .test() .assertComplete(); verify(userDao).insert(mUserArgumentCaptor.capture()); assertEquals("testUser", mUserArgumentCaptor.getValue().getUserName()); assertEquals("testPassword", mUserArgumentCaptor.getValue().getPassword()); }