anchor.diff:              break;
             case RawSocketEvent.WRITE:
               Expect.isFalse(client.writeEventsEnabled);
  +            Expect.equals(bytesRead, data.length);
  +            for (int i = bytesWritten; i < data.length; ++i) {
  +              Expect.isTrue(data[i] is int);
  +              Expect.isTrue(data[i] < 256 && data[i] >= 0);
  +            }
               bytesWritten += client.write(
                   data, bytesWritten, data.length - bytesWritten);
               if (bytesWritten < data.length) {
  
positive.code:             Expect.isTrue(bytesWritten == 0);
              Expect.isTrue(client.available() > 0);
              var buffer = client.read();
              data.setRange(bytesRead, buffer.length, buffer);
              bytesRead += buffer.length;
              if (bytesRead == data.length) {
                verifyTestData(data);
                client.writeEventsEnabled = true;
  
negative.code:           case RawSocketEvent.READ:
              Expect.isTrue(socket.available() > 0);
              var buffer = socket.read();
              if (buffer != null) {
                dataReceived.setRange(bytesRead, buffer.length, buffer);
                bytesRead += buffer.length;
              }
              break;
            case RawSocketEvent.WRITE:
              Expect.isTrue(bytesRead == 0);
  