public void testEarthquakeAndJohnCallsEvidence() {
BayesInstance bayesInstance = new BayesInstance(jTree);
bayesInstance.setLikelyhood("JohnCalls", new double[]{1.0, 0.0});
bayesInstance.setLikelyhood("Earthquake", new double[]{1.0, 0.0});
bayesInstance.globalUpdate();
assertArray( new double[]{1.0, 0.0}, scaleDouble(3, bayesInstance.marginalize("JohnCalls").getDistribution()) );
assertArray( new double[]{0.618, 0.382 }, scaleDouble( 3, bayesInstance.marginalize("MaryCalls").getDistribution() ) );