}, timeout(5000));
}
@Test
public void should_not_check_if_Frame_is_ready_if_Robot_is_Null() throws AWTException {
final RobotFactory factory = mock(RobotFactory.class);
Point before = MouseInfo.getPointerInfo().getLocation();
when(factory.newRobotInPrimaryScreen()).thenReturn(null);
status = new WindowStatus(windows, factory);
status.checkIfReady(window);
// mouse pointer should not have moved
assertThat(MouseInfo.getPointerInfo().getLocation()).isEqualTo(before);
}