}
}
@Test
public void testWatcherFailedAndFinishedThrowsException() {
PrintableResult result = testResult(TestWatcherFailedAndFinishedThrowsExceptionTest.class);
assertThat(result, failureCountIs(3));
assertThat(result, hasFailureContaining("test failure"));
assertThat(result, hasFailureContaining("watcher failed failure"));
assertThat(result, hasFailureContaining("watcher finished failure"));
}