NoxItemCatalog extends Observable { Drawable getPlaceholder(int position) { Drawable placeholder = placeholders[position]; if (placeholder == null && defaultPlaceholder != null) { Drawable clone = defaultPlaceholder.getConstantState().newDrawable(); placeholders[position] = clone; placeholder = clone; } return placeholder; } NoxItemCatalog(List<NoxItem> noxItems, int noxItemSize, ImageLoader imageLoader); void recreate();  }
@Test public void shouldReturnNullIfNoxCatalogWasNotLoadedAndOnePlaceholderWasNotConfigured() { NoxItemCatalog noxItemCatalog = givenOneNoxItemCatalog(); assertNull(noxItemCatalog.getPlaceholder(0)); }