TabModelImpl implements TabModel { @Override public String getTitle() { return title; } TabModelImpl(String title); @Override String getTitle(); @Override Map<String, Object> getProperties(); @Override void setProperties(Map<String, Object> properties); @Override LayoutModel getLayout(String path, String layoutType); @Override ComponentModel getChild(String path); @Override void addChild(ComponentModel component); @Override Map<String, ComponentModel> getChildren();  }
@Test public void testTitle() { String title = "Tab Title Foo"; TabModel tab = new TabModelImpl(title); assertEquals(title, tab.getTitle()); }