@Test
public void buildDescriptionFrom() {

    String title = "Example title";
    String semester = "Herbstsemester 2012";
    String eventDescription = "Detail_description";
    String[] argsMock = new String[3];
    argsMock[0] = semester;
    argsMock[1] = LECTURE_SOLL;
    argsMock[2] = eventDescription;
    List<Identity> participants = new ArrayList<Identity>();
    CampusCourseImportTO campusCourseData = new CampusCourseImportTO(title, semester, lecturers, participants, eventDescription, TEST_RESOURCEABLE_ID, null);
    Translator translatorMock = mock(Translator.class);
    courseDescriptionBuilder.translator = translatorMock;
    // Description example :
    // 'Herbstsemester 2012/n/nDozent1_Vorname Dozent1_Nachname, Dozent2_Vorname Dozent2_Nachname, Dozent3_Vorname Dozent3_Nachname/nContent'
    String descriptionSoll = semester + "/n/n" + LECTURE_SOLL + "/n/n" + eventDescription;
    when(translatorMock.translate(CourseDescriptionBuilder.KEY_DESCRIPTION_TEMPLATE, argsMock)).thenReturn(descriptionSoll);
    String generatedDescription = courseDescriptionBuilder.buildDescriptionFrom(campusCourseData, "de");
    // Check if argsMock contains the right parameter (argsMock[0] = semester; argsMock[1] = LECTURE_SOLL; argsMock[2] = eventDescription;)
    verify(translatorMock).translate(CourseDescriptionBuilder.KEY_DESCRIPTION_TEMPLATE, argsMock);
}