@Ignore("outdated")
@Test
public void testAdd() throws Exception {
// create Person p
Person p = new Person(this.model, new URIImpl("data://jim"), true);
assertTrue("model contains a Person after add", this.model.contains(p
.getResource(), RDF.type, Person.PERSON));
// set name
p.setName("Jim");
assert this.model.contains(p.getResource(), RDF.type, Person.PERSON);
assert this.model.contains(p.getResource(), Person.NAME, "Jim");
// create Persons q1 and q2
Person q1 = new Person(this.model, new URIImpl("data://jon"), true);
q1.setName("Jon");
Person q2 = new Person(this.model, new URIImpl("data://joe"), true);
q2.setName("Joe");
// add friends
assertEquals(0, p.getAllFriend().length);
p.addFriend(q1);
assertEquals(1, p.getAllFriend().length);