@Test
public void should_throw_error_if_setProperty_is_vetoed() {
final PropertyVetoException vetoed = new PropertyVetoException("Test", null);
JInternalFrameAction action = MAXIMIZE;
try {
driver.failIfVetoed(internalFrame, action, new UnexpectedException(vetoed));
failWhenExpectingException();
} catch (ActionFailedException e) {
assertThat(e.getMessage()).contains(action.name).contains("was vetoed: <Test>");
}
}