@Test
public void testUpdateRevisionWhenDoesNotExist() {

    // create the revision being sent in by the client
    final String entityId = "entity-1";
    final String clientId = "client-new";
    final Revision revision = new Revision(0L, clientId, entityId);
    final RevisionClaim revisionClaim = new StandardRevisionClaim(revision);
    // perform an update task
    final RevisionUpdate<RevisableEntity> revisionUpdate = revisionManager.updateRevision(
            revisionClaim, createUpdateTask(entityId));
    assertNotNull(revisionUpdate);
    // version should go to 1 and client id should be updated to client-new
    verifyRevisionUpdate(entityId, revisionUpdate, new Long(1), clientId);
}