def test_jointree_marginals(self):
        ft = FactorTree.create_jointree(self.bn)
        resFactor = ft.marginals(["winter"])
        np.testing.assert_array_almost_equal(resFactor.get_potential(), np.array([0.6, 0.4]))