ComponentModelImpl implements ComponentModel { @Override public final ParentModel getParent() { return parent; } ComponentModelImpl(String path, ParentModel parent, String displayType, Map<String, Object> properties); @Override final String getPath(); @Override final ParentModel getParent(); @Override final String getDisplayType(); @Override final void setDisplayType(String displayType); @Override final Map<String, Object> getProperties(); @Override final void setProperties(Map<String, Object> properties); @Override final GridPoint getPreferredPosition(); @Override final void setPreferredPosition(GridPoint preferredPosition); @Override final TileSize getPreferredSize(); @Override final void setPreferredSize(TileSize preferredSize);  }
@Test public void testParent() { ParentModel parent = new TabModelImpl("Tab"); ComponentModel component = new ComponentModelImpl("", parent, null, Collections.emptyMap()); assertSame(parent, component.getParent()); }