.getUniqueSimalID());
String uri1 = RDFUtils.PROJECT_NAMESPACE_URI + "TestingId1";
String uri2 = RDFUtils.PROJECT_NAMESPACE_URI + "TestingId2";
IProject project;
project = SimalRepositoryFactory.getProjectService().createProject(uri1);
project = SimalRepositoryFactory.getProjectService().getProject(uri1);
String id1 = project.getSimalID();
project = SimalRepositoryFactory.getProjectService().createProject(uri2);
project = SimalRepositoryFactory.getProjectService().getProject(uri2);
String id2 = project.getSimalID();
assertFalse("Project IDs are not unique: " + id1 + " == " + id2, id1
.equals(id2));
// check IDs are being written to the repository
project = SimalRepositoryFactory.getProjectService().getProject(uri1);
String id3 = project.getSimalID();
assertTrue("Project IDs don't appear to be written to the repo", id1
.equals(id3));
// check we are retrieving projects by ID correctly
project = SimalRepositoryFactory.getProjectService().getProjectById(id1);
assertNotNull(project);
project.delete();
project = SimalRepositoryFactory.getProjectService().getProject(uri2);
project.delete();
}