NoxItem { public boolean hasResourceId() { return resourceId != 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 shouldReturnTrueIfHasConfiguredAResourceId() { NoxItem noxItem = new NoxItem(ANY_RESOURCE_ID); assertTrue(noxItem.hasResourceId()); }
@Test public void shouldReturnFalseIfHasNoConfiguredAResourceId() { NoxItem noxItem = new NoxItem(ANY_URL); assertFalse(noxItem.hasResourceId()); }