window = MyWindow.createNew();
}
@Test
public void should_append_component_hierarchy_to_exception_message_if_component_was_not_found() {
Condition condition = new ComponentFoundCondition("JButton to be found", finder, byType(JButton.class));
try {
pause(condition, 10);
failWhenExpectingException();
} catch (WaitTimedOutError e) {
assertThat(e.getMessage()).contains("Timed out waiting for JButton to be found")