@When("I query all Events by source '(\\d+)' and type '([^']*)'$")
public void iQueryAllBySourceAndType(int index, String type) throws SDKException, ClassNotFoundException {
try {
ManagedObjectRepresentation mo = managedObject;
EventFilter filter = new EventFilter().bySource(mo).byType(type);
collection = (EventCollectionRepresentation) eventApi.getEventsByFilter(filter).get();
} catch (SDKException ex) {
status = ex.getHttpStatus();
}
}