@Test public void should_Return_Component_Background() { window.startRecording(); assertThat(driver.backgroundOf(window)).isEqualTo(BACKGROUND); window.requireInvoked("getBackground"); }
@Test public void should_return_settings_from_Robot() { Settings settings = new Settings(); when(robot.settings()).thenReturn(settings); assertThat(driver.settings()).isSameAs(settings); }