assertOnTokenScroll();
}
private void assertOnTokenScroll()
{
MongoToken token1 = new MongoToken();
token1.setId("MongoTokenId1");
token1.setTokenName("tokenName1");
MongoTokenClient client = new MongoTokenClient();
client.setClientName("tokenClient1");
client.setId("tokenClientId");
token1.setClient(client);
MongoToken token2 = new MongoToken();
token2.setId("tokenId2");
token2.setTokenName("tokenName2");
token2.setClient(client);
em.persist(token1);
em.persist(token2);
String queryWithoutClause = "Select t from MongoToken t";
assertOnTokenScroll(queryWithoutClause, 2);