@Test
public void testUniDirectional() {
System.out.println("test:uniDirectional");
Location r = new Location();
r.setName("uniRoom");
Event tmpTI = new Event();
tmpTI.setLocation(r, true);
Event persistTI = new Event();
persistTI.setLocation(r, false);
Iterator iter = r.getEvents().iterator();
assertEquals(tmpTI, iter.next());
assertFalse(iter.hasNext());
Event ti = new Event();
r = new Location();
r.setName("testRoom");
ti.setLocation(r, true);
assertEquals(r, ti.getLocation());
assertTrue(r.getEvents().iterator().hasNext());
Location r2 = new Location();
r2.setName("testRoom2");
Event ti2 = new Event();
ti2.setLocation(r2, false);
assertEquals(r2, ti2.getLocation());
assertFalse(r2.getEvents().iterator().hasNext());
}