// ckeck if received events are expected
int result = 0;
int autoEvents = 0;
int wrongEvents = 0;
for (int i = 0; i < eventsCount; i++) {
ParsedEvent event = parsedEvents[i];
logWriter.println("=> Event #" + i + ";");
// print event info
byte eventSuspendPolicy = event.getSuspendPolicy();
logWriter.println("=> SuspendPolicy=" + eventSuspendPolicy + "/"
+ JDWPConstants.SuspendPolicy.getName(eventSuspendPolicy));
byte eventKind = event.getEventKind();
logWriter.println("=> EventKind=" + eventKind + "/"
+ JDWPConstants.EventKind.getName(eventKind));
int eventRequestID = event.getRequestID();
logWriter.println("=> RequestID=" + eventRequestID);
// check if event is expected
if (eventKind == JDWPConstants.EventKind.VM_DEATH) {
if (parsedEvents[i].getRequestID() == 0) {