PropertyLink { public String getUrl() { return url; } PropertyLink(String text, String url, int relevance); String getText(); String getUrl(); int getRelevance(); JsonObject toJson();  }
@Test public void constructorWithoutUrl() { PropertyLink subject = new PropertyLink("foobar", "", 0); assertThat(subject.getUrl(), is(emptyString())); }