@Test
public void should_delegate_to_foregroundOf_in_driver() {
ComponentDriver driver = fixture.driver();
Component component = fixture.target();
when(driver.foregroundOf(component)).thenReturn(BLUE);
assertThat(fixture.foreground().target()).isSameAs(BLUE);
verify(driver).foregroundOf(component);
}
private static class ComponentFixture extends AbstractComponentFixture<ComponentFixture, Component, ComponentDriver> {