@Test
public void androidPluginStructuredOutput() {

  String output =
    "WARNING|:project:app1|A minor warning\n" +
    "WARNING|:project:app2|A|minor|warning\n" +
    "ERROR|:project:libs:lib1|Serious error\n";
  assertEquals("0: Warning:A minor warning\n" +
               ":project:app1\n" +
               "1: Warning:A|minor|warning\n" +
               ":project:app2\n" +
               "2: Error:Serious error\n" +
               ":project:libs:lib1\n",
               toString(parser.parseGradleOutput(output)));
}