assertEquals("position = (-12,0)", var.getProperties().get(0) );
Map<String, Definition> defMap = defToMap( network.getDefinitions() );
assertEquals( 4, defMap.size() );
Definition def = defMap.get( "WetGrass");
assertEquals( "WetGrass", def.getName());
assertEquals( 2, def.getGiven().size());
assertEquals(def.getGiven(), Arrays.asList(new String[]{"Sprinkler", "Rain"}));
assertEquals("1.0 0.0 0.1 0.9 0.1 0.9 0.01 0.99", def.getProbabilities());
def = defMap.get( "Cloudy");
assertEquals( "Cloudy", def.getName());
assertNull(def.getGiven());
assertEquals("0.5 0.5", def.getProbabilities().trim());
def = defMap.get( "Sprinkler");
assertEquals( "Sprinkler", def.getName());
assertEquals( 1, def.getGiven().size());
assertEquals("Cloudy", def.getGiven().get(0));
assertEquals("0.5 0.5 0.9 0.1", def.getProbabilities().trim());
def = defMap.get( "Rain");
assertEquals( "Rain", def.getName() );
assertNull( def.getGiven());
assertEquals("0.5 0.5", def.getProbabilities().trim());
}