} catch (FluentExecutionStopped e) {
assertThat(e.getMessage(), equalTo("AssertionError during invocation of: ?.div().getLocation().shouldNotBe('(1, 1)')"));
assertThat(e.getCause().getMessage().replace("(after 1 ms)", ""), equalTo("\nExpected: not <(1, 1)>\n but: was <(1, 1)>"));
}
when(we.getSize()).thenReturn(new Dimension(10, 10));
Dimension size = fwe.getSize().shouldBe(new Dimension(10, 10)).value();
assertThat(size, equalTo(new Dimension(10, 10)));
when(we.getSize()).thenReturn(new Dimension(10, 10));
try {
fwe.getSize().shouldNotBe(new Dimension(10, 10));
fail("should have barfed");
} catch (FluentExecutionStopped e) {
assertThat(e.getMessage(), equalTo("AssertionError during invocation of: ?.div().getSize().shouldNotBe('(10, 10)')"));
assertThat(e.getCause().getMessage().replace("(after 1 ms)", ""), equalTo("\nExpected: not <(10, 10)>\n but: was <(10, 10)>"));
}
when(we.getSize()).thenReturn(new Dimension(10, 10));
try {
fwe.getSize().shouldBe(new Dimension(20, 20));
fail("should have barfed");
} catch (FluentExecutionStopped e) {
assertThat(e.getMessage(), equalTo("AssertionError during invocation of: ?.div().getSize().shouldBe('(20, 20)')"));
assertThat(e.getCause().getMessage().replace("(after 1 ms)", ""), equalTo("\nExpected: <(20, 20)>\n but: was <(10, 10)>"));
}