@Test
public void updateShouldThrowCheckedException() throws IOException {

  doThrow(CAUSE).when(rw).update(entity1, entity2);
  exception.expect(IOException.class);
  exception.expectCause(is((Throwable) CAUSE));
  sut.update(entity1, entity2);
}