assertTrue(second.id > first.id);
}
public void testRelationship() {
DiscoveryStringId radioactivity = new DiscoveryStringId("Radioactivity", StringID_CURIE);
DiscoveryStringId relativity = new DiscoveryStringId("Relativity", StringID_EINSTEIN);
DiscoveryStringId teslaCoil = new DiscoveryStringId("Tesla Coil", StringID_TESLA);
pm.insert(radioactivity);
pm.insert(relativity);
pm.insert(teslaCoil);
DiscoveryStringId relativity2 = pm.createQuery(DiscoveryStringId.class).filter("discoverer", StringID_EINSTEIN).get();
assertTrue(relativity.name.equals(relativity2.name));
}