private static DataInteraction onRow(String str) {
        return onData(hasEntry(equalTo(LongListActivity.ROW_TEXT), is(str)));
    }
Uses {@link Espresso#onData(org.hamcrest.Matcher)} to get a reference to a specific row.
<p>
Note: A custom matcher can be used to match the content and have more readable code.
See the Custom Matcher Sample.
</p>

@param str the content of the field
@return a {@link DataInteraction} referencing the row
ui/espresso/DataAdapterSample/app/src/sharedTest/java/com/example/android/testing/espresso/DataAdapterSample/LongListActivityTest.java