ReviewItem extends Component<ReviewItem.Props, Void> { public boolean hasItemImage() { return TextUtil.isNotEmpty(props.itemModel.imageUrl); } ReviewItem(@NonNull final Props props);  ReviewItem(@NonNull final Props props, @NonNull final ActionDispatcher dispatcher); boolean hasItemImage(); boolean hasIcon();  }
@Test public void whenItemImageIsAvailableThenShowIt() { final ItemModel model = getItemModel(ITEM_IMAGE_URL, ITEM_TITLE, ITEM_SUBTITLE, 1, ITEM_CURRENCY, ITEM_UNIT_PRICE); final ReviewItem component = new ReviewItem(new ReviewItem.Props(model, ITEM_ICON, null, null)); Assert.assertTrue(component.hasItemImage()); }