Text extends Component implements HasText { @Override public void setId(String id) { super.setId(id); } Text(String text); @Override void setText(String text); @Override String getText(); @Override void setId(String id); @Override void setVisible(boolean visible);  }
@Test public void setId_throwsWithMeaningfulMessage() { assertExceptionOnSetProperty("id"); new Text("").setId("foo"); }