existentPublication.setPublicationString(publication_string+1); existentPublication.setPublicationType(publication_type+1);
    protected void setUp() throws Exception {        super.setUp();                publicationType = new PublicationType();        publicationType.setPublicationType("Journal Article");                newPublicationType = new PublicationType();        newPublicationType.setPublicationType("Book");                person1 = new Person();        person1.setNome("Autor1");                person2 = new Person();        person2.setNome("Autor2");                person3 = new Person();        person3.setNome("Autor3");                authors = new ArrayList<Person>();        authors.add(person1);        authors.add(person2);        authors.add(person3);                inexistentPublicationDTO = new PublicationDTO();        inexistentPublicationDTO.setConference(conference);        inexistentPublicationDTO.setCountry(country);        inexistentPublicationDTO.setCriticizedAuthor(criticized_author);        inexistentPublicationDTO.setEdition(edition);        inexistentPublicationDTO.setEditor(editor);        inexistentPublicationDTO.setEditorCity(editor_city);        inexistentPublicationDTO.setFascicle(fascicle);        inexistentPublicationDTO.setFirstPage(first_page);        inexistentPublicationDTO.setFormat(format);        inexistentPublicationDTO.setInstituition(instituition);        inexistentPublicationDTO.setIsbn(isbn);        inexistentPublicationDTO.setIssn(issn);        inexistentPublicationDTO.setJournalName(journal_name);        inexistentPublicationDTO.setKeyPublicationType(key_publication_type);        inexistentPublicationDTO.setLanguage(language);        inexistentPublicationDTO.setLastPage(last_page);        inexistentPublicationDTO.setLocal(local);        inexistentPublicationDTO.setMonth(month);        inexistentPublicationDTO.setMonth_end(month_end);        inexistentPublicationDTO.setNumber(number);        inexistentPublicationDTO.setNumberPages(number_pages);        inexistentPublicationDTO.setObservation(observation);        inexistentPublicationDTO.setOriginalLanguage(language);        inexistentPublicationDTO.setPublicationString(publication_string);        inexistentPublicationDTO.setPublicationType(publication_type);        inexistentPublicationDTO.setScope(scope);        inexistentPublicationDTO.setSerie(serie);        inexistentPublicationDTO.setSubType(subtype);        inexistentPublicationDTO.setTitle(title);        inexistentPublicationDTO.setTranslatedAuthor(translated_author);        inexistentPublicationDTO.setUniversity(university);        inexistentPublicationDTO.setUrl(url);        inexistentPublicationDTO.setVolume(volume);        inexistentPublicationDTO.setYear(year);        inexistentPublicationDTO.setYear_end(year_end);                existentPublicationDTO = new PublicationDTO();        existentPublicationDTO.setConference(conference);        existentPublicationDTO.setCountry(country);        existentPublicationDTO.setCriticizedAuthor(criticized_author);        existentPublicationDTO.setEdition(edition);        existentPublicationDTO.setEditor(editor);        existentPublicationDTO.setEditorCity(editor_city);        existentPublicationDTO.setFascicle(fascicle);        existentPublicationDTO.setFirstPage(first_page);        existentPublicationDTO.setFormat(format);        existentPublicationDTO.setInstituition(instituition);        existentPublicationDTO.setIsbn(isbn);        existentPublicationDTO.setIssn(issn);        existentPublicationDTO.setJournalName(journal_name);        existentPublicationDTO.setKeyPublicationType(key_publication_type);        existentPublicationDTO.setLanguage(language);        existentPublicationDTO.setLastPage(last_page);        existentPublicationDTO.setLocal(local);        existentPublicationDTO.setMonth(month);        existentPublicationDTO.setMonth_end(month_end);        existentPublicationDTO.setNumber(number);        existentPublicationDTO.setNumberPages(number_pages);        existentPublicationDTO.setObservation(observation);        existentPublicationDTO.setOriginalLanguage(language);        existentPublicationDTO.setPublicationString(publication_string);        existentPublicationDTO.setPublicationType(publication_type);        existentPublicationDTO.setScope(scope);        existentPublicationDTO.setSerie(serie);        existentPublicationDTO.setSubType(subtype);        existentPublicationDTO.setTitle(title);        existentPublicationDTO.setTranslatedAuthor(translated_author);        existentPublicationDTO.setUniversity(university);        existentPublicationDTO.setUrl(url);        existentPublicationDTO.setVolume(volume);        existentPublicationDTO.setYear(year);        existentPublicationDTO.setYear_end(year_end);                //all fields are different from existentPublication, except idInternal        existentPublication = new Publication();        existentPublication.setConference(conference+1);        existentPublication.setCountry(country+1);        existentPublication.setCriticizedAuthor(criticized_author+1);        existentPublication.setEdition(edition+1);        existentPublication.setEditor(editor+1);        existentPublication.setEditorCity(editor_city+1);        existentPublication.setFascicle(fascicle+1);        existentPublication.setFirstPage(first_page+1);        existentPublication.setFormat(format+1);        existentPublication.setInstituition(instituition+1);        existentPublication.setIsbn(isbn+1);        existentPublication.setIssn(issn+1);        existentPublication.setJournalName(journal_name+1);        existentPublication.setKeyType(key_publication_type+1);        existentPublication.setLanguage(language+1);        existentPublication.setLastPage(last_page+1);        existentPublication.setLocal(local+1);        existentPublication.setMonth(month+1);        existentPublication.setMonth_end(month_end+1);        existentPublication.setNumber(number+1);        existentPublication.setNumberPages(number_pages+1);        existentPublication.setObservation(observation+1);        existentPublication.setOriginalLanguage(language+1);        existentPublication.setPublicationString(publication_string+1);        existentPublication.setPublicationType(publication_type+1);        existentPublication.setScope(scope+1);        existentPublication.setSerie(serie+1);        existentPublication.setSubType(subtype+1);        existentPublication.setTitlePt(title+1);        existentPublication.setTranslatedAuthor(translated_author+1);        existentPublication.setUniversity(university+1);        existentPublication.setUrl(url+1);        existentPublication.setVolume(volume+1);        existentPublication.setYear(Integer.valueOf(year+1));        existentPublication.setYear_end(Integer.valueOf(year_end+1));                Authorship authorship = new Authorship();        authorship.setAuthor(person1);        authorship.setOrder(1);        authorship.setResult(existentPublication);        //existentPublication.getPublicationAuthorships().add(authorship);    }