Program: 32959
Project: 32959
Buggy source:
/** 
 * Returns a   {@link ViewAction} that navigates to a menu item in {@link NavigationView} using amenu item resource id. <p/> <p/> View constraints: <ul> <li>View must be a child of a  {@link DrawerLayout}<li>View must be of type   {@link NavigationView}<li>View must be visible on screen <li>View must be displayed on screen <ul>
 * @param menuItemId the resource id of the menu item
 * @return a {@link ViewAction} that navigates on a menu item
 */
public static ViewAction navigateTo(final int menuItemId){
  return new ViewAction(){
    @Override public void perform(    UiController uiController,    View view){
      NavigationView navigationView=(NavigationView)view;
      Menu menu=navigationView.getMenu();
      if (null == menu.findItem(menuItemId)) {
        throw new PerformException.Builder().withActionDescription(this.getDescription()).withViewDescription(HumanReadables.describe(view)).withCause(new RuntimeException(getErrorMessage(menu,view))).build();
      }
      menu.performIdentifierAction(menuItemId,0);
      uiController.loopMainThreadUntilIdle();
    }
    private String getErrorMessage(    Menu menu,    View view){
      String NEW_LINE=System.getProperty("String_Node_Str");
      StringBuilder errorMessage=new StringBuilder(20).append("String_Node_Str").append(NEW_LINE);
      for (int position=0; position < menu.size(); position++) {
        errorMessage.append("String_Node_Str").append(position);
        MenuItem menuItem=menu.getItem(position);
        if (menuItem != null) {
          CharSequence itemTitle=menuItem.getTitle();
          if (itemTitle != null) {
            errorMessage.append("String_Node_Str").append(itemTitle);
          }
          if (view.getResources() != null) {
            int itemId=menuItem.getItemId();
            try {
              errorMessage.append("String_Node_Str");
              String menuItemResourceName=view.getResources().getResourceName(itemId);
              errorMessage.append(menuItemResourceName);
            }
 catch (            NotFoundException nfe) {
              errorMessage.append("String_Node_Str");
            }
          }
          errorMessage.append(NEW_LINE);
        }
      }
      return errorMessage.toString();
    }
    @Override public String getDescription(){
      return "String_Node_Str";
    }
    @Override public Matcher<View> getConstraints(){
      return allOf(isAssignableFrom(NavigationView.class),withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE),isDisplayingAtLeast(90));
    }
  }
;
}

Fixed version (ground truth):
/** 
 * Returns a   {@link ViewAction} that navigates to a menu item in {@link NavigationView} using amenu item resource id. <p/> <p/> View constraints: <ul> <li>View must be a child of a  {@link DrawerLayout}<li>View must be of type   {@link NavigationView}<li>View must be visible on screen <li>View must be displayed on screen <ul>
 * @param menuItemId the resource id of the menu item
 * @return a {@link ViewAction} that navigates on a menu item
 */
public static ViewAction navigateTo(final int menuItemId){
  return new ViewAction(){
    @Override public void perform(    UiController uiController,    View view){
      NavigationView navigationView=(NavigationView)view;
      Menu menu=navigationView.getMenu();
      if (null == menu.findItem(menuItemId)) {
        throw new PerformException.Builder().withActionDescription(this.getDescription()).withViewDescription(HumanReadables.describe(view)).withCause(new RuntimeException(getErrorMessage(menu,view))).build();
      }
      menu.performIdentifierAction(menuItemId,0);
      uiController.loopMainThreadUntilIdle();
    }
    private String getErrorMessage(    Menu menu,    View view){
      String NEW_LINE=System.getProperty("String_Node_Str");
      StringBuilder errorMessage=new StringBuilder(66).append("String_Node_Str").append(NEW_LINE);
      for (int position=0; position < menu.size(); position++) {
        errorMessage.append("String_Node_Str").append(position);
        MenuItem menuItem=menu.getItem(position);
        if (menuItem != null) {
          CharSequence itemTitle=menuItem.getTitle();
          if (itemTitle != null) {
            errorMessage.append("String_Node_Str").append(itemTitle);
          }
          if (view.getResources() != null) {
            int itemId=menuItem.getItemId();
            try {
              errorMessage.append("String_Node_Str");
              String menuItemResourceName=view.getResources().getResourceName(itemId);
              errorMessage.append(menuItemResourceName);
            }
 catch (            NotFoundException nfe) {
              errorMessage.append("String_Node_Str");
            }
          }
          errorMessage.append(NEW_LINE);
        }
      }
      return errorMessage.toString();
    }
    @Override public String getDescription(){
      return "String_Node_Str";
    }
    @Override public Matcher<View> getConstraints(){
      return allOf(isAssignableFrom(NavigationView.class),withEffectiveVisibility(ViewMatchers.Visibility.VISIBLE),isDisplayingAtLeast(90));
    }
  }
;
}