NoxItem { public boolean hasPlaceholder() { return placeholderId != null; } NoxItem(String url);  NoxItem(int resourceId);  NoxItem(String url, int placeholderId); boolean hasUrl(); boolean hasResourceId(); boolean hasPlaceholder(); String getUrl(); Integer getResourceId(); Integer getPlaceholderId();  }
@Test public void shouldReturnTrueIfHasPlaceholder() { NoxItem noxItem = new NoxItem(ANY_URL, ANY_PLACEHOLDER); assertTrue(noxItem.hasPlaceholder()); }
@Test public void shouldReturnFalseIfHasNoConfiguredAPlaceholder() { NoxItem noxItem = new NoxItem(ANY_URL); assertFalse(noxItem.hasPlaceholder()); }