Event e = source.next();
String body = new String(e.getBody());
assertEquals("Expected event body to be 'y', but got " + body, body, "y");
source.close();
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* Test that an empty command throws an exception