@Test
public void correctlyCreatesExceptionWhenWeAreInterestedInTheCause() {

    Throwable interrupted = new InterruptedException();
    Throwable throwable = new WebDriverActionExecutionException("Something happened!", interrupted, mock(AutomationResultBuilder.class));
    AutomationResultBuilder automationResultBuilder = new InstanceBasedAutomationResultBuilder();
    AutomationResult automationResult = automationResultBuilder.buildAutomationResult(throwable);
    assertEquals(automationResult, AutomationResult.INTERRUPTED);
}