### Question:
NavGraph extends NavDestination implements Iterable<NavDestination> { public NavDestination findNode(@IdRes int resid) { return findNode(resid, true); } NavGraph(@NonNull NavigatorProvider navigatorProvider);  NavGraph(@NonNull Navigator<? extends NavGraph> navGraphNavigator); @Override void onInflate(@NonNull Context context, @NonNull AttributeSet attrs); void addDestination(@NonNull NavDestination node); void addDestinations(@NonNull Collection<NavDestination> nodes); void addDestinations(@NonNull NavDestination... nodes); NavDestination findNode(@IdRes int resid); @NonNull @Override Iterator<NavDestination> iterator(); void addAll(@NonNull NavGraph other); void remove(@NonNull NavDestination node); void clear(); @IdRes int getStartDestination(); void setStartDestination(@IdRes int startDestId);  }### Answer:
@Test public void addDestinationsAsVarArgs() { NavDestination destination = createFirstDestination(); NavDestination secondDestination = createSecondDestination(); NavGraph graph = createGraphWithDestinations(destination, secondDestination); assertThat(destination.getParent(), is(graph)); assertThat(graph.findNode(FIRST_DESTINATION_ID), is(destination)); assertThat(secondDestination.getParent(), is(graph)); assertThat(graph.findNode(SECOND_DESTINATION_ID), is(secondDestination)); }