@Test
public void testModelGlobalIdentity() throws Exception {
loadTestData(getClass().getPackage().getName(), "The Bodyguard.xml");
em.getTransaction().begin();
try {
Artist artist = artistRepository.findByName("Whitney Houston").iterator().next();
Release release = releaseRepository.findByName("The Bodyguard (Original Soundtrack Album)").iterator().next();
GlobalIdentityEntity identity = new GlobalIdentityEntity();
identity.setSource(GlobalIdentity.SOURCE_MUSICBRAINZ);
identity.setEntityId(artist.getId());
identity.setUri("0307edfc-437c-4b48-8700-80680e66a228");
identity.setLastUpdated(new Date());
identity.setLastUpdatedBy("JUnit");
globalIdentityRepository.create(identity);