コード例 #1
0
  /** Test of ac_identity_getForPerson method, of class MetadataRDFConverter. */
  @Test
  public void testAc_identity_getForPerson() {
    System.out.println("* MetadataRDFConverterTest: ac_identity_getForPerson");
    String sFirstNameNull = "";
    String sLastNameNull = "";
    String sEmailNull = "";
    // APIResponseData expResult = null;
    APIResponseData resultNull =
        MetadataRDFConverter.ac_identity_getForPerson(sFirstNameNull, sLastNameNull, sEmailNull);
    // assertEquals(expResult, resultNull);
    assertNotNull(resultNull);
    assertNotNull(resultNull.oData);
    assertEquals(resultNull.oData.size(), 0);

    String sFirstName = "Sasa";
    String sLastName = "Stojanovic";
    String sEmail = "*****@*****.**";
    APIResponseData result =
        MetadataRDFConverter.ac_identity_getForPerson(sFirstName, sLastName, sEmail);
    assertNotNull(result);
    assertNotNull(result.oData);
    assertEquals(result.oData.size() > 0, true);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #2
0
  /** Test of SaveForumPost method, of class MetadataRDFConverter. */
  @Test
  public void testSaveForumPost() {
    System.out.println("* MetadataRDFConverterTest: SaveForumPost");
    ForumPost oForumPostNull = null;
    ForumPost expResult = null;
    ForumPost resultNull = MetadataRDFConverter.SaveForumPost(oForumPostNull);
    assertEquals(expResult, resultNull);

    ForumPost oForumPost = new ForumPost();
    oForumPost.m_sForumItemID = "3557";
    oForumPost.m_oInForumThread = new ForumThread();
    oForumPost.m_oInForumThread.m_sID = "3559";
    oForumPost.m_oInForumThread.m_oInForum = new Forum();
    oForumPost.m_oInForumThread.m_oInForum.m_sID = "3558";
    oForumPost.m_sID = "3560";
    oForumPost.m_dtmTime = new Date(112, 0, 16, 16, 31);
    oForumPost.m_sSubject = "This is a test subject for post";
    oForumPost.m_sBody = "This is a test body for post";
    oForumPost.m_oAuthor = new foaf_Person();
    oForumPost.m_oAuthor.m_sFirstName = "Angel";
    oForumPost.m_oAuthor.m_sLastName = "Blue";
    oForumPost.m_oAuthor.m_sID = "*****@*****.**";
    oForumPost.m_oAuthor.m_sEmail = "*****@*****.**";
    oForumPost.m_sCategory = "xxxxxx";
    ForumPost result = MetadataRDFConverter.SaveForumPost(oForumPost);
    assertNotNull(result);
    assertEquals(result.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oInForumThread.m_oInForum.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oInForumThread.m_sObjectURI.isEmpty(), false);
    // assertEquals(result.m_oHasAuthor.m_sObjectURI.isEmpty(), false);
    // assertEquals(expResult, result);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #3
0
  /** Test of SavePersonData method, of class MetadataRDFConverter. */
  @Test
  public void testSavePersonData() {
    System.out.println("* MetadataRDFConverterTest: SavePersonData");
    try {
      foaf_Person oPersonNull = null;
      OntModel oModel = MetadataGlobal.LoadOWL(MetadataConstants.sLocationLoadAlert);
      MetadataRDFConverter.SavePersonData(oPersonNull, oModel);
      MetadataGlobal.SaveOWL(oModel, MetadataConstants.sLocationSaveAlert);

      foaf_Person oPerson = new foaf_Person();
      oPerson.m_sFirstName = "Ivan";
      oPerson.m_sLastName = "Obradovic";
      // oPerson.m_sGender = ""; //???
      oPerson.m_sID = "*****@*****.**";
      oPerson.m_sEmail = "*****@*****.**"; // ???
      MetadataRDFConverter.SavePersonData(oPerson, oModel);
      MetadataGlobal.SaveOWL(oModel, MetadataConstants.sLocationSaveAlert);
      assertNotNull(oPerson);
      assertEquals(oPerson.m_sObjectURI.isEmpty(), false);

      //// TO-DO review the generated test code and remove the default call to fail.
      // fail("The test case is a prototype.");
    } catch (Exception ex) {
      System.out.println("Error: " + ex.getMessage());
    }
  }
コード例 #4
0
  /** Test of ac_issue_getAllForMethod method, of class MetadataRDFConverter. */
  @Test
  public void testAc_issue_getAllForMethod() {
    System.out.println("* MetadataRDFConverterTest: ac_issue_getAllForMethod");
    ArrayList<String> sMethodUriNull = null;
    // APIResponseData expResult = null;
    APIResponseData resultNull = MetadataRDFConverter.ac_issue_getAllForMethod(sMethodUriNull);
    // assertEquals(expResult, resultNull);
    assertNotNull(resultNull);
    assertNotNull(resultNull.oData);
    assertEquals(resultNull.oData.size(), 0);

    ArrayList<String> sMethodUriString = new ArrayList<String>();
    sMethodUriString.add(null);
    APIResponseData resultStringNull =
        MetadataRDFConverter.ac_issue_getAllForMethod(sMethodUriString);
    // assertEquals(expResult, resultStringNull);
    assertNotNull(resultStringNull);
    assertNotNull(resultStringNull.oData);
    assertEquals(resultStringNull.oData.size(), 0);

    ArrayList<String> sMethodUriEmpty = new ArrayList<String>();
    sMethodUriEmpty.add("");
    APIResponseData resultStringEmpty =
        MetadataRDFConverter.ac_issue_getAllForMethod(sMethodUriEmpty);
    // assertEquals(expResult, resultStringEmpty);
    assertNotNull(resultStringEmpty);
    assertNotNull(resultStringEmpty.oData);
    assertEquals(resultStringEmpty.oData.size(), 0);

    ArrayList<String> sMethodUri = new ArrayList<String>();
    sMethodUri.add("http://www.alert-project.eu/ontologies/alert.owl#Method1");
    sMethodUri.add("http://www.alert-project.eu/ontologies/alert.owl#Method2");
    sMethodUri.add("http://www.alert-project.eu/ontologies/alert.owl#Method3");
    APIResponseData result = MetadataRDFConverter.ac_issue_getAllForMethod(sMethodUri);
    assertNotNull(result);
    assertNotNull(result.oData);
    assertEquals(result.oData.size() > 0, true);
    // assertEquals(expResult, result);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #5
0
  /** Test of ac_wiki_getRelatedToIssue method, of class MetadataRDFConverter. */
  @Test
  public void testAc_wiki_getRelatedToIssue() {
    System.out.println("* MetadataRDFConverterTest: ac_wiki_getRelatedToIssue");
    String sIssueUriNull = "";
    // APIResponseData expResult = null;
    APIResponseData resultNull = MetadataRDFConverter.ac_wiki_getRelatedToIssue(sIssueUriNull);
    // assertEquals(expResult, resultNull);
    assertNotNull(resultNull);
    assertNotNull(resultNull.oData);
    assertEquals(resultNull.oData.size(), 0);

    String sIssueUri = "http://www.alert-project.eu/ontologies/alert_its.owl#Bug1";
    APIResponseData result = MetadataRDFConverter.ac_wiki_getRelatedToIssue(sIssueUri);
    assertNotNull(result);
    assertNotNull(result.oData);
    assertEquals(result.oData.size() > 0, true);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #6
0
  /** Test of ac_wiki_getRelatedToKeyword method, of class MetadataRDFConverter. */
  @Test
  public void testAc_wiki_getRelatedToKeyword() {
    System.out.println("* MetadataRDFConverterTest: ac_wiki_getRelatedToKeyword");
    String sKeywordNull = "";
    // APIResponseData expResult = null;
    APIResponseData resultNull = MetadataRDFConverter.ac_wiki_getRelatedToKeyword(sKeywordNull);
    // assertEquals(expResult, resultNull);
    assertNotNull(resultNull);
    assertNotNull(resultNull.oData);
    assertEquals(resultNull.oData.size(), 0);

    String sKeyword = "test";
    APIResponseData result = MetadataRDFConverter.ac_wiki_getRelatedToKeyword(sKeyword);
    assertNotNull(result);
    assertNotNull(result.oData);
    assertEquals(result.oData.size() > 0, true);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #7
0
  /** Test of GetAllMembers method, of class MetadataRDFConverter. */
  @Test
  public void testGetAllMembers() {
    System.out.println("* MetadataRDFConverterTest: GetAllMembers");
    String sOntClassNull = "";
    // APIResponseData expResult = null;
    APIResponseData resultNull = MetadataRDFConverter.GetAllMembers(sOntClassNull);
    // assertEquals(expResult, resultNull);
    assertNotNull(resultNull);
    assertNotNull(resultNull.oData);
    assertEquals(resultNull.oData.size(), 0);

    String sOntClass = MetadataConstants.c_NS_Alert + MetadataConstants.c_OWLClass_Bug;
    APIResponseData result = MetadataRDFConverter.GetAllMembers(sOntClass);
    assertNotNull(result);
    assertNotNull(result.oData);
    assertEquals(result.oData.size() > 0, true);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #8
0
  /** Test of GetMember method, of class MetadataRDFConverter. */
  @Test
  public void testGetMember() {
    System.out.println("* MetadataRDFConverterTest: GetMember");
    String sMemberURLNull = "";
    // OntoProperty expResult = null;
    OntoProperty resultNull = MetadataRDFConverter.GetMember(sMemberURLNull);
    // assertEquals(expResult, resultNull);
    assertNotNull(resultNull);
    assertNotNull(resultNull.oProperties);
    assertEquals(resultNull.oProperties.size(), 0);

    String sMemberURL = "http://www.alert-project.eu/ontologies/alert_its.owl#Bug1";
    OntoProperty result = MetadataRDFConverter.GetMember(sMemberURL);
    assertNotNull(result);
    assertNotNull(result.oProperties);
    assertEquals(result.oProperties.size() > 0, true);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #9
0
  /** Test of SaveAnnotationData method, of class MetadataRDFConverter. */
  @Test
  public void testSaveAnnotationData() {
    System.out.println("* MetadataRDFConverterTest: SaveAnnotationData");
    AnnotationData oAnnotationNull = null;
    AnnotationData expResult = null;
    AnnotationData resultNull = MetadataRDFConverter.SaveAnnotationData(oAnnotationNull);
    assertEquals(expResult, resultNull);

    AnnotationData oAnnotation = new AnnotationData();
    oAnnotation.m_sObjectURI = "http://www.alert-project.eu/ontologies/alert_its.owl#Bug1";
    oAnnotation.oAnnotated = new MetadataGlobal.AnnotationProp[2];
    oAnnotation.oAnnotated[0] = new MetadataGlobal.AnnotationProp();
    oAnnotation.oAnnotated[0].sName = MetadataConstants.c_XMLE_subjectAnnotated;
    oAnnotation.oAnnotated[0].sValue =
        "This is test <concept uri=\"http://www.alert-project.eu/ontologies/alert_its.owl#Bug1\">annotation</concept> for subject";
    oAnnotation.oAnnotated[1] = new MetadataGlobal.AnnotationProp();
    oAnnotation.oAnnotated[1].sName = MetadataConstants.c_XMLE_descriptionAnnotated;
    oAnnotation.oAnnotated[1].sValue =
        "This is test <concept uri=\"http://www.alert-project.eu/ontologies/alert_its.owl#Bug1\">annotation</concept> for description";
    oAnnotation.SetKeywords();
    oAnnotation.oConcepts = new MetadataGlobal.ConceptProp[2];
    oAnnotation.oConcepts[0] = new MetadataGlobal.ConceptProp();
    oAnnotation.oConcepts[0].sName = MetadataConstants.c_XMLE_subjectConcepts;
    oAnnotation.oConcepts[0].sUri = "http://www.alert-project.eu/ontologies/alert_its.owl#Bug1";
    oAnnotation.oConcepts[0].sCount = "1";
    oAnnotation.oConcepts[1] = new MetadataGlobal.ConceptProp();
    oAnnotation.oConcepts[1].sName = MetadataConstants.c_XMLE_descriptionConcepts;
    oAnnotation.oConcepts[1].sUri = "http://www.alert-project.eu/ontologies/alert_its.owl#Bug1";
    oAnnotation.oConcepts[1].sCount = "1";
    AnnotationData result = MetadataRDFConverter.SaveAnnotationData(oAnnotation);
    assertNotNull(result);
    assertNotNull(result.oAnnotated);
    assertNotNull(result.oConcepts);
    assertEquals(result.oAnnotated[0].m_sObjectURI.isEmpty(), false);
    assertEquals(result.oAnnotated[1].m_sObjectURI.isEmpty(), false);
    assertEquals(result.oConcepts[0].m_sObjectURI.isEmpty(), false);
    assertEquals(result.oConcepts[1].m_sObjectURI.isEmpty(), false);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #10
0
  /** Test of ac_issue_getAllForProduct method, of class MetadataRDFConverter. */
  @Test
  public void testAc_issue_getAllForProduct() {
    System.out.println("* MetadataRDFConverterTest: ac_issue_getAllForProduct");
    String sProductUriEmpty = "";
    // APIResponseData expResult = null;
    APIResponseData resultNull = MetadataRDFConverter.ac_issue_getAllForProduct(sProductUriEmpty);
    // assertEquals(expResult, resultNull);
    assertNotNull(resultNull);
    assertNotNull(resultNull.oData);
    assertEquals(resultNull.oData.size(), 0);

    String sProductUri = "http://www.ifi.uzh.ch/ddis/evoont/2008/11/bom#Product1";
    APIResponseData result = MetadataRDFConverter.ac_issue_getAllForProduct(sProductUri);
    assertNotNull(result);
    assertNotNull(result.oData);
    assertEquals(result.oData.size() > 0, true);
    // assertEquals(expResult, result);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #11
0
  /** Test of ac_method_getRelatedCode method, of class MetadataRDFConverter. */
  @Test
  public void testAc_method_getRelatedCode() {
    System.out.println("* MetadataRDFConverterTest: ac_method_getRelatedCode");
    String sPersonUriNull = "";
    String sProductUriNull = "";
    // APIResponseData expResult = null;
    APIResponseData resultNull =
        MetadataRDFConverter.ac_method_getRelatedCode(sPersonUriNull, sProductUriNull);
    // assertEquals(expResult, resultNull);
    assertNotNull(resultNull);
    assertNotNull(resultNull.oData);
    assertEquals(resultNull.oData.size(), 0);

    String sPersonUri = "http://www.alert-project.eu/ontologies/alert_scm.owl#Person1";
    String sProductUri = "http://www.ifi.uzh.ch/ddis/evoont/2008/11/bom#Product1";
    APIResponseData result = MetadataRDFConverter.ac_method_getRelatedCode(sPersonUri, sProductUri);
    assertNotNull(result);
    assertNotNull(result.oData);
    assertEquals(result.oData.size() > 0, true);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #12
0
  /** Test of ac_competency_getPersonForIssue method, of class MetadataRDFConverter. */
  @Test
  public void testAc_competency_getPersonForIssue() {
    System.out.println("* MetadataRDFConverterTest: ac_competency_getPersonForIssue");
    String sPersonForIssueSPARQLNull = "";
    // APIResponseData expResult = null;
    APIResponseData resultNull =
        MetadataRDFConverter.ac_competency_getPersonForIssue(sPersonForIssueSPARQLNull);
    // assertEquals(expResult, resultNull);
    assertNotNull(resultNull);
    assertNotNull(resultNull.oData);
    assertEquals(resultNull.oData.size(), 0);

    String sPersonForIssueSPARQL =
        " <http://www.alert-project.eu/ontologies/alert_its.owl#Bug1> <http://www.ifi.uzh.ch/ddis/evoont/2008/11/bom#hasAssignee> ?personUri ";
    APIResponseData result =
        MetadataRDFConverter.ac_competency_getPersonForIssue(sPersonForIssueSPARQL);
    assertNotNull(result);
    assertNotNull(result.oData);
    assertEquals(result.oData.size() > 0, true);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #13
0
  /** Test of SavePerson method, of class MetadataRDFConverter. */
  @Test
  public void testSavePerson() {
    System.out.println("* MetadataRDFConverterTest: SavePerson");
    foaf_Person oPersonNull = null;
    foaf_Person expResult = null;
    foaf_Person resultNull = MetadataRDFConverter.SavePerson(oPersonNull);
    assertEquals(expResult, resultNull);

    foaf_Person oPerson = new foaf_Person();
    oPerson.m_sFirstName = "Ivan";
    oPerson.m_sLastName = "Obradovic";
    oPerson.m_sGender = ""; // ???
    oPerson.m_sID = "*****@*****.**";
    // oPerson.m_sEmail = "*****@*****.**"; //???

    foaf_Person result = MetadataRDFConverter.SavePerson(oPerson);
    assertNotNull(result);
    assertEquals(result.m_sObjectURI.isEmpty(), false);
    // assertNotSame("", result.m_sObjectURI);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #14
0
  /** Test of ac_sparql method, of class MetadataRDFConverter. */
  @Test
  public void testAc_sparql() {
    System.out.println("* MetadataRDFConverterTest: ac_sparql");
    String sSPARQLNull = "";
    OntModelSpec oOntModelSpecNull = null;
    // APIResponseData expResult = null;
    APIResponseData resultNull = MetadataRDFConverter.ac_sparql(sSPARQLNull, oOntModelSpecNull);
    // assertEquals(expResult, resultNull);
    assertNotNull(resultNull);
    assertNotNull(resultNull.oData);
    assertEquals(resultNull.oData.size(), 0);

    String sSPARQL =
        "SELECT ?issueUri ?issueId ?issueDescription WHERE {?issueUri <http://www.ifi.uzh.ch/ddis/evoont/2008/11/bom#isIssueOf> ?componentUri . ?componentUri <http://www.ifi.uzh.ch/ddis/evoont/2008/11/bom#isComponentOf> <http://www.ifi.uzh.ch/ddis/evoont/2008/11/bom#Product1> . ?issueUri <http://www.alert-project.eu/ontologies/alert.owl#ID> ?issueId . ?issueUri <http://www.ifi.uzh.ch/ddis/evoont/2008/11/bom#description> ?issueDescription}";
    OntModelSpec oOntModelSpec = OntModelSpec.OWL_MEM_RULE_INF;
    APIResponseData result = MetadataRDFConverter.ac_sparql(sSPARQL, oOntModelSpec);
    assertNotNull(result);
    assertNotNull(result.oData);
    assertEquals(result.oData.size() > 0, true);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #15
0
  /** Test of ac_issue_getExplicitDuplicates method, of class MetadataRDFConverter. */
  @Test
  public void testAc_issue_getDuplicates() {
    System.out.println("* MetadataRDFConverterTest: ac_issue_getDuplicates");
    String sIssueDuplicatesSPARQLNull = "";
    // APIResponseData expResult = null;
    APIResponseData resultNull =
        MetadataRDFConverter.ac_issue_getExplicitDuplicates(sIssueDuplicatesSPARQLNull);
    // assertEquals(expResult, resultNull);
    assertNotNull(resultNull);
    assertNotNull(resultNull.oData);
    assertEquals(resultNull.oData.size(), 0);

    String sIssueDuplicatesSPARQL =
        " ?issueUri <http://www.ifi.uzh.ch/ddis/evoont/2008/11/bom#keyword> ?keyword . <http://www.alert-project.eu/ontologies/alert_its.owl#Bug1> <http://www.ifi.uzh.ch/ddis/evoont/2008/11/bom#keyword> ?keyword ";
    APIResponseData result =
        MetadataRDFConverter.ac_issue_getExplicitDuplicates(sIssueDuplicatesSPARQL);
    assertNotNull(result);
    assertNotNull(result.oData);
    assertEquals(result.oData.size() > 0, true);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #16
0
  /** Test of SaveIssue method, of class MetadataRDFConverter. */
  @Test
  public void testSaveIssue() {
    System.out.println("* MetadataRDFConverterTest: SaveIssue");
    Issue oIssueNull = null;
    Issue expResult = null;
    Issue resultNull = MetadataRDFConverter.SaveIssue(oIssueNull, true);
    assertEquals(expResult, resultNull);

    Issue oIssue = GetIssueExample();
    Issue result = MetadataRDFConverter.SaveIssue(oIssue, true);
    assertNotNull(result);
    assertEquals(result.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasReporter.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oIsIssueOf.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasComputerSystem.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasAssignee.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasCCPerson[0].m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oDependsOn[0].m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oDependsOn[1].m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oBlocks[0].m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oBlocks[1].m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oIsDuplicateOf.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oIsMergedInto.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasMilestone.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasComment[0].m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasComment[0].m_oHasCommentor.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasComment[1].m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasComment[1].m_oHasCommentor.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasActivity[0].m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasActivity[1].m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasActivity[2].m_sObjectURI.isEmpty(), false);
    // assertNotSame("", result.m_sObjectURI);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }
コード例 #17
0
  /** Test of SaveCommit method, of class MetadataRDFConverter. */
  @Test
  public void testSaveCommit() {
    System.out.println("* MetadataRDFConverterTest: SaveCommit");
    Commit oCommitNull = null;
    Commit expResult = null;
    Commit resultNull = MetadataRDFConverter.SaveCommit(oCommitNull);
    assertEquals(expResult, resultNull);

    Commit oCommit = new Commit();
    oCommit.m_oIsCommitOfRepository = new Repository();
    oCommit.m_oIsCommitOfRepository.m_sObjectURI =
        "http://www.alert-project.eu/ontologies/alert_scm.owl#Repository1";
    oCommit.m_sRevisionTag = "1";
    oCommit.m_oHasAuthor = new foaf_Person();
    oCommit.m_oHasAuthor.m_sFirstName = "Sasa";
    oCommit.m_oHasAuthor.m_sLastName = "Stojanovic";
    oCommit.m_oHasAuthor.m_sID = "*****@*****.**";
    oCommit.m_oHasAuthor.m_sEmail = "*****@*****.**";
    oCommit.m_oHasCommitter = new foaf_Person();
    oCommit.m_oHasCommitter.m_sFirstName = "Ivan";
    oCommit.m_oHasCommitter.m_sLastName = "Obradovic";
    oCommit.m_oHasCommitter.m_sID = "*****@*****.**";
    oCommit.m_oHasCommitter.m_sEmail = "*****@*****.**";
    oCommit.m_dtmCommitDate = new Date(112, 0, 16, 16, 31);
    oCommit.m_sCommitMessage = "comment of commit";

    Commit result = MetadataRDFConverter.SaveCommit(oCommit);
    assertNotNull(result);
    assertEquals(result.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasAuthor.m_sObjectURI.isEmpty(), false);
    assertEquals(result.m_oHasCommitter.m_sObjectURI.isEmpty(), false);
    // assertNotSame("", result.m_sObjectURI);

    //// TO-DO review the generated test code and remove the default call to fail.
    // fail("The test case is a prototype.");
  }