assertThat(view.claimReason(), is(theReason));
}
@Test
public void should_describe_known_failures() {
String rogueAi = "Pod bay doors didn't open";
<BUG>view = JobView.of(

a(job().whereTheLast(build().finishedWith(FAILURE).andKnownFailures(rogueAi))),

withDefaultConfig(),
augmentedWith(Analysis.class));
</BUG>
assertThat(view.hasKnownFailures(), is(true));

assertThat(view.claimReason(), is(theReason));
}
@Test
public void should_describe_known_failures() {
String rogueAi = "Pod bay doors didn't open";
view = a(jobView().of(
a(job().whereTheLast(build().finishedWith(FAILURE).and().knownFailures(rogueAi))))
.augmented(with(Analysis.class)));
assertThat(view.hasKnownFailures(), is(true));
