// Path: src/test/java/com/github/havarunner/TestHelper.java
// public static Failure runAndRecordFailure(HavaRunner havaRunner) {
//     final AtomicReference<Failure> expectedFailure = new AtomicReference<>();
//     RunNotifier runNotifier = new RunNotifier() {
//         @Override
//         public void fireTestFailure(Failure failure) {
//             expectedFailure.set(failure);
//         }
//     };
//     run(havaRunner, runNotifier);
//     return expectedFailure.get();
// }


import com.github.havarunner.HavaRunner;
import org.junit.Test;
import org.junit.runner.notification.Failure;
import static com.github.havarunner.TestHelper.runAndRecordFailure;
import static org.junit.Assert.assertTrue;
package com.github.havarunner.timeout;



public class TimeoutTest {

    @Test
    public void HavaRunner_throws_an_exception_if_the_test_times_out() {
// Path: src/test/java/com/github/havarunner/TestHelper.java
// public static Failure runAndRecordFailure(HavaRunner havaRunner) {
//     final AtomicReference<Failure> expectedFailure = new AtomicReference<>();
//     RunNotifier runNotifier = new RunNotifier() {
//         @Override
//         public void fireTestFailure(Failure failure) {
//             expectedFailure.set(failure);
//         }
//     };
//     run(havaRunner, runNotifier);
//     return expectedFailure.get();
// }


// Path: src/test/java/com/github/havarunner/timeout/TimeoutTest.java
import com.github.havarunner.HavaRunner;
import org.junit.Test;
import org.junit.runner.notification.Failure;
import static com.github.havarunner.TestHelper.runAndRecordFailure;
import static org.junit.Assert.assertTrue;

package com.github.havarunner.timeout;



public class TimeoutTest {

    @Test
    public void HavaRunner_throws_an_exception_if_the_test_times_out() {
        Failure failure = runAndRecordFailure(new HavaRunner(TimedOut.class));