@Test
public void testSearchOriginWithLimit() throws Exception {

  ResultSet<Origin> result = delegate.handle(new SearchOriginRequest().setLimit(1));
  assertEquals(1, result.getCount());
  assertEquals(1, result.getLimit());
  assertEquals(1, ListUtils.list(result.iterator()).size());
  verify(securityContext, times(1)).hasReadPermission(isA(OriginEntity.class));
  verify(originResponseConverter, times(1)).apply(notNull());
}