Assert.assertEquals((Integer)10, nestedResult.data.get(0).getId());
Assert.assertEquals((Integer)30, nestedResult.data.get(1).getId());

Tests both size and maintaining order.