@Test
void usingArgsMultipleCalls() {

    Collection<long[]> coll1 = (Collection<long[]>) functionServiceHelper
            .onRegion(idRegion)
            .withArgs("test")
            .execute("PartitionedRegionIDGeneratorFunction")
            .getResult();
    assertEquals(coll1.size(), 1);
    long[] ids1 = coll1.iterator().next();
    assertEquals(ids1.length, 2);
    assertEquals(ids1[0], 0);
    assertEquals(ids1[1], 1);
    Collection<long[]> coll2 = (Collection<long[]>) functionServiceHelper
            .onRegion(idRegion)
            .withArgs("test")
            .execute("PartitionedRegionIDGeneratorFunction")
            .getResult();
    assertEquals(coll2.size(), 1);
    long[] ids2 = coll2.iterator().next();
    assertEquals(ids2.length, 2);
    assertEquals(ids2[0], 2);
    assertEquals(ids2[1], 3);
}