@Test
public void convertingResourceToBean() throws Exception {
final Resource johnDoeRsc = RDFSamples.getJohnDoe();
// RUN...
Person johnDoe = factory.createBean(johnDoeRsc);
// test...
assertEquals(johnDoeFirstName, johnDoe.getFirstName());
assertEquals(doeFamilyName, johnDoe.getFamilyName());
assertEquals(johnDoeBirthday, johnDoe.getBirthday());
assertEquals(johnDoeMBoxSHA1, johnDoe.getMboxSHA1());
assertTrue(contains(johnDoe.getMailAddresses(), johnDoeMbox1));
assertTrue(contains(johnDoe.getMailAddresses(), johnDoeMbox2));
assertTrue(johnDoe.getPhones().contains(johnDoePhone1));
assertTrue(johnDoe.getPhones().contains(johnDoePhone2));
assertEquals(1, johnDoe.getFriends().size());
// test Mary Doe...
Person maryDoe = johnDoe.getFriends().get(0);
assertEquals(maryDoeFirstName, maryDoe.getFirstName());
assertEquals(doeFamilyName, maryDoe.getFamilyName());
}