anchor.diff:      process!.stdin.write('\r\n');
       process!.stdin.write(message);
   
  -    List<String> responses = await inStream.take(2).toList();
  -    expect(responses, hasLength(2));
  +    // Expect
  +    final response = await _readLspMessage(process!.stdout);
   
  -    expect(responses[0], startsWith('Content-Length: '));
  -
  -    final json = jsonDecode(responses[1]);
  +    final json = jsonDecode(response);
       expect(json['id'], 1);
       expect(json['result'], isNotNull);
       final result = json['result'];
  
positive.code: // for details. All rights reserved. Use of this source code is governed by a
  // BSD-style license that can be found in the LICENSE file.
  
  import 'dart:convert';
  import 'dart:io';
  
  
negative.code: 
      process = await project.start(args);
  
      // Send an LSP init.
      final String message = jsonEncode({
        'jsonrpc': '2.0',
  