diff --git a/molgenis-data-elasticsearch/src/test/java/org/molgenis/data/elasticsearch/request/LimitOffsetGeneratorTest.java b/molgenis-data-elasticsearch/src/test/java/org/molgenis/data/elasticsearch/request/LimitOffsetGeneratorTest.java
index <HASH>..<HASH> 100644
--- a/molgenis-data-elasticsearch/src/test/java/org/molgenis/data/elasticsearch/request/LimitOffsetGeneratorTest.java
+++ b/molgenis-data-elasticsearch/src/test/java/org/molgenis/data/elasticsearch/request/LimitOffsetGeneratorTest.java
@@ -4,7 +4,6 @@ import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.verify;
 
 import org.elasticsearch.action.search.SearchRequestBuilder;
-import org.molgenis.data.elasticsearch.request.LimitOffsetGenerator;
 import org.molgenis.data.support.QueryImpl;
 import org.testng.annotations.BeforeMethod;
 import org.testng.annotations.Test;
@@ -32,7 +31,7 @@ public class LimitOffsetGeneratorTest
 	{
 		LimitOffsetGenerator gen = new LimitOffsetGenerator();
 		gen.generate(searchRequestBuilderMock, new QueryImpl(), null);
-		verify(searchRequestBuilderMock).setSize(Integer.MAX_VALUE);
+		verify(searchRequestBuilderMock).setSize(Integer.valueOf(1000));
 	}
 
 	@Test
Fix test. De default value of the size when undefined is <I>.