BddHouseMapper implements TwoWaysMapper<GoTHouse, BddHouse> { @Override public GoTHouse inverseMap(BddHouse model) { return new GoTHouse(model.getHouseId(), BuildConfig.DEBUG ? model.getHouseName() + " cache" : model.getHouseName(), model.getHouseImageUrl()); }  @Override GoTHouse inverseMap(BddHouse model); @Override List<GoTHouse> inverseMap(List<BddHouse> listModel); @Override BddHouse map(GoTHouse model); @Override List<BddHouse> map(List<GoTHouse> listModel);  }
@Test public void should_return_correct_House_when_inverseMap() { BddHouse bddHouse = new BddHouse(); bddHouse.setHouseId(HOUSE_ID); bddHouse.setHouseName(HOUSE_NAME); bddHouse.setHouseImageUrl(HOUSE_IMAGE_URL); GoTHouse house = mapper.inverseMap(bddHouse); assertThat(house.getId(), is(HOUSE_ID)); assertThat(house.getName(), is(BuildConfig.DEBUG ? HOUSE_NAME + " cache" : HOUSE_NAME)); assertThat(house.getImageUrl(), is(HOUSE_IMAGE_URL)); }