@Test
public void parseParsedBuildIssue() throws IOException {

  // Do not run tests on Windows (see http://b.android.com/222904)
  assumeFalse(SystemInfo.isWindows);
  String output = "AGPBI: {\"kind\":\"ERROR\",\"text\":\"" +
                  "No resource identifier found for attribute \\u0027a\\u0027 in package" +
                  " \\u0027android\\u0027\",\"sourcePath\":\"/usr/local/google/home/cmw/" +
                  "udacity/Sunshine/app/src/main/res/menu/detail.xml\",\"position\":" +
                  "{\"startLine\":5},\"original\":\"\"}";
  List<Message> Messages = parser.parseGradleOutput(output);
  assertEquals("Expect one message.", 1, Messages.size());
  Message message = Messages.iterator().next();
  assertEquals("No resource identifier found for attribute 'a' in package 'android'", message.getText());
  assertEquals(Message.Kind.ERROR, message.getKind());
  assertEquals("/usr/local/google/home/cmw/udacity/Sunshine/app/src/main/res/menu/detail.xml", message.getSourcePath());
  assertEquals(new SourcePosition(5, -1, -1), message.getSourceFilePositions().get(0).getPosition());
}