WaypointEntry { public WaypointEntry setRouteWaypoint(final RouteWaypoint routeWaypoint) { mRouteWaypoint = routeWaypoint; return this; } WaypointEntry(final String label);  WaypointEntry(@StringRes final int resourceIdLabel);  WaypointEntry(final RouteWaypoint waypoint);  WaypointEntry(final RouteWaypoint waypoint, final String label);  WaypointEntry(final RouteWaypoint waypoint, @StringRes final int resourceIdLabel); @Nullable String getStringLabel(); WaypointEntry setStringLabel(final String label); @StringRes int getResourceIdLabel(); WaypointEntry setResourceIdLabel(final @StringRes int stringId); String getLabel(final @NonNull Context context, final @NonNull String defaultValue); RouteWaypoint getRouteWaypoint(); WaypointEntry setRouteWaypoint(final RouteWaypoint routeWaypoint); boolean isValid(); boolean isDraggable(); WaypointEntry setDraggable(final boolean draggable); boolean isRemovable(); WaypointEntry setRemovable(final boolean removable);  }
@Test public void testSetRouteWaypoint() { final String name = "HERE"; final WaypointEntry entry = new WaypointEntry(name); entry.setRouteWaypoint(mRouteWaypoint); assertEquals(mRouteWaypoint, entry.getRouteWaypoint()); }