NoxItem { public boolean hasUrl() { return url != 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 shouldReturnTrueIfHasConfiguredAnUrl() { NoxItem noxItem = new NoxItem(ANY_URL); assertTrue(noxItem.hasUrl()); }
@Test public void shouldReturnFalseIfHasNoConfiguredAnUrl() { NoxItem noxItem = new NoxItem(ANY_RESOURCE_ID); assertFalse(noxItem.hasUrl()); }