WaypointList extends RecyclerView { public List<RouteWaypoint> getRouteWaypoints() { final List<RouteWaypoint> waypointList = new ArrayList<>(); for (final WaypointEntry entry : mWaypointEntries) { waypointList.add(entry.getRouteWaypoint()); } return waypointList; } WaypointList(final Context context);  WaypointList(final Context context, final AttributeSet attrs);  WaypointList(final Context context, final AttributeSet attrs, final int defStyleAttr); final WaypointEntry addEmptyEntry(); final WaypointEntry insertEmptyEntry(final int index); final boolean addEntry(final WaypointEntry entry); void insertEntry(final int index, final WaypointEntry entry); void updateEntry(final int index, final WaypointEntry entry); WaypointEntry removeEntry(final int index); int getMinWaypointItems(); void setMinWaypointItems(final int count); void setMaxWaypointItems(final int count); int getMaxWaypointItems(); void setVisibleNumberOfWaypointItems(final int count); int getVisibleWaypointItems(); void reset(); void reverse(); List<WaypointEntry> getEntries(); void setEntries(final List<WaypointEntry> entries); List<RouteWaypoint> getRouteWaypoints(); int getEntriesCount(); void setListener(final WaypointList.Listener listener);  }
@Test public void testGetRouteWaypoints() { List<RouteWaypoint> waypoints = mWaypointList.getRouteWaypoints(); assertEquals(waypoints.size(), mWaypointList.getEntriesCount()); }