@Test
public void testUpdateOriginTrust() throws Exception {

  OriginEntity entity = new OriginEntity()
          .setId(UUID.randomUUID());
  UpdateOriginRequest request = new UpdateOriginRequest()
          .setId(entity.getId())
          .setTrust(0.1f);
  when(originResolver.apply(entity.getId())).thenReturn(entity);
  delegate.handle(request);
  verify(originManager).saveOrigin(argThat(origin -> Objects.equals(request.getTrust(), origin.getTrust())));
}