private static void doPositiveTest(
      final String text,
      final Type type,
      final String highlightedText,
      final String pathOnUnix,
      final int line,
      final int column) {

    final DartPositionInfo info = DartPositionInfo.parsePositionInfo(text);
    assertNotNull(info);
    assertEquals(type, info.type);
    final boolean trimSlash =
        type == Type.FILE && SystemInfo.isWindows && pathOnUnix.startsWith("/");
    assertEquals(trimSlash ? pathOnUnix.substring(1) : pathOnUnix, info.path);
    assertEquals(
        highlightedText, text.substring(info.highlightingStartIndex, info.highlightingEndIndex));
    assertEquals(line, info.line);
    assertEquals(column, info.column);
  }
 private static void doNegativeTest(final String text) {
   assertNull(DartPositionInfo.parsePositionInfo(text));
 }