public void should_lookup_Component_by_name_and_type() {
Frame frame = mock(type);
Settings settings = mock(Settings.class);
when(robot.settings()).thenReturn(settings);
when(settings.componentLookupScope()).thenReturn(SHOWING_ONLY);
ComponentFinder finder = mock(ComponentFinder.class);
when(robot.finder()).thenReturn(finder);
when(finder.findByName(name, type, true)).thenReturn(frame);
ComponentFixture fixture = new ComponentFixture(ComponentFixture.class, robot, name, type);
assertThat(fixture.robot()).isSameAs(robot);
assertThat(fixture.target()).isSameAs(frame);
}