anchor.diff:      });
   
       test("a JSON parse error is rejected", () {
  -      expect(server.parseRequest('invalid json {'),
  -          completion(equals(JSON.encode({
  -        'jsonrpc': '2.0',
  -        'error': {
  -          'code': error_code.PARSE_ERROR,
  -          'message': "Invalid JSON: Unexpected character at 0: 'invalid json "
  -                     "{'",
  -          'data': {'request': 'invalid json {'}
  -        },
  -        'id': null
  -      }))));
  +      return server.parseRequest('invalid json {').then((result) {
  +        expect(JSON.decode(result), {
  +          'jsonrpc': '2.0',
  +          'error': {
  +            'code': error_code.PARSE_ERROR,
  +            'message': startsWith("Invalid JSON: "),
  +            'data': {'request': 'invalid json {'}
  +          },
  +          'id': null
  +        });
  +      });
       });
     });
   
  
positive.code:         'data': {
            'request': {'jsonrpc': '2.0', 'method': 'foo', 'id': 1234},
            'full': 'FormatException: bad format',
            'stack': contains('server_test.dart')
          }
        }
      }));
  
negative.code:           'data': {
              'request': {'jsonrpc': '2.0', 'method': 'foo', 'id': 1234},
              'full': 'FormatException: bad format',
              'stack': new isInstanceOf<String>()
            }
          }
        }));
  