@Test(expected = InvalidArgumentException.class)
public void testUpdateOriginDeleted() throws Exception {

  OriginEntity entity = new OriginEntity()
          .setId(UUID.randomUUID())
          .addFlag(OriginEntity.Flag.Deleted);
  when(originResolver.apply(entity.getId())).thenReturn(entity);
  delegate.handle(new UpdateOriginRequest().setId(entity.getId()));
}