// this is the set of data that would normally be in the database
aSourceGraph = new GraphImpl();
aSourceGraph.addAll(aGraph);
aSourceGraph.addAll(RdfGenerator.asRdf(aJoe));
aSourceGraph.addAll(RdfGenerator.asRdf(aJane));
aPerson = RdfGenerator.fromRdf(TestPerson.class, aBob.getRdfId(), new TestDataSource(aSourceGraph));
// should still be equal, should have re-used Jane
assertEquals(aBob, aPerson);