String newRevision = doConcurrentUpdateToNovel();
assertThat( newRevision ).isNotEqualTo( novel.get_rev() );
Transaction transaction = session.beginTransaction();
novel.setDescription( "Description 2" );
transaction.commit();
}
@Test(expected = StaleObjectStateException.class)
public void mergeAfterConcurrentModificationShouldCauseException() throws Exception {
Novel novel = createAndPersistNovel();