@SuppressWarnings("unchecked")
@Test
public void testUpdateContactInvalidRev() {

	when(contactDao.find(any(), anyMap())).thenReturn(contactRef);
	contactDtoRef.setRevision(contactRef.getRev() + 1);
	// now go
	Exception exc = null;
	try {
		webservice.updateContact(contactDtoRef);
	} catch (Exception e) {
		exc = e;
	}
	verify(contactDao).find(eq(new Long(11)), anyMap());
	verify(contactDao, never()).merge(any(Contact.class), anyMap());
	assertNotNull(exc);
	assertTrue(exc.toString().contains("Try to work with outdated revision"));
}