@Test
public void should_return_tab_titles_using_driver() {
String[] titles = { "One", "Two" };
JTabbedPaneDriver driver = fixture.driver();
JTabbedPane target = fixture.target();
when(driver.tabTitles(target)).thenReturn(titles);
assertThat(fixture.tabTitles()).isSameAs(titles);
verify(driver).tabTitles(target);
}
@Test