@Test
public void parseAaptOutputWithRange6() throws IOException {

  // Test missing resource name.
  createTempXmlFile();
  writeToFile("<resources xmlns:android='http://schemas.android.com/apk/res/android'>",
              "  <style>");
  String messageText = "A 'name' attribute is required for <style>";
  String err = sourceFilePath + ":2: error: " + messageText;
  Collection<Message> messages = parser.parseGradleOutput(err);
  assertHasCorrectErrorMessage(messages, messageText, 2, 3);
}