@Test
public void parseAaptOutputWithRange5() throws IOException {

  // Check for aapt error which occurs when the attribute name in an item style declaration is
  // non-existent.
  createTempXmlFile();
  writeToFile("<resources xmlns:android='http://schemas.android.com/apk/res/android'>",
              "  <style name='wrongAttribute'>",
              "    <item name='nonexistent'>left</item>");
  String messageText = "No resource found that matches the given name: attr 'nonexistent'.";
  String err = sourceFilePath + ":3: error: Error: " + messageText;
  Collection<Message> messages = parser.parseGradleOutput(err);
  assertHasCorrectErrorMessage(messages, messageText, 3, 17);
}