private void checkSimpleAdapterData(SimpleAdapter<Uri> simpleAdapter, int requestedSize) {
    Assert.assertNotNull(simpleAdapter);
    Assert.assertEquals(10, requestedSize);
    Assert.assertEquals(simpleAdapter.getSize(), requestedSize);
    Uri firstUri = simpleAdapter.get(0);
    assertNotNull(firstUri);
    assertEquals(Uri.parse("http://myserver.com/file1"), firstUri);
    Uri lastUri = simpleAdapter.get(simpleAdapter.getSize() - 1);
    assertNotNull(lastUri);
    assertEquals(Uri.parse("http://myserver.com/file10"), lastUri);
  }
This is the Unit Test class for the LocalResourceSimpleAdapterTest
samples/scrollperf/src/androidTest/java/com/facebook/samples/scrollperf/data/impl/LocalResourceSimpleAdapterTest.java