x2.getTable().addLine(0.6, true, false);// p(x2|~a) = 0.6
x3.getTable().addLine(0.2, true, true); // p(x3|a) = 0.2
x3.getTable().addLine(0.6, true, false);// p(x3|~a) = 0.6
network.validate();
SamplingQuery query = new SamplingQuery(network);
query.defineEventType(x1, EventType.Evidence);
query.defineEventType(x2, EventType.Evidence);
query.defineEventType(x3, EventType.Evidence);
query.defineEventType(a, EventType.Outcome);
query.setEventValue(a, true);
query.setEventValue(x1, true);
query.setEventValue(x2, true);
query.setEventValue(x3, false);
query.execute();
testPercent(query.getProbability(),18);
}