@Test
public void getProjectBlogEntry() throws QuadrigaStorageException {

    // Creating an instance of ProjectBlogEntryDTO which is passes as
    // argument
    // to the getProjectBlogEntry method
    ProjectBlogEntryDTO projectBlogEntryDTO = new ProjectBlogEntryDTO();
    projectBlogEntryDTO.setProjectBlogEntryId(ID);
    projectBlogEntryDTO.setTitle(TITLE);
    projectBlogEntryDTO.setDescription(DESCRIPTION);
    projectBlogEntryDTO.setAuthor(AUTHOR_NAME);
    projectBlogEntryDTO.setCreatedDate(CREATED_DATE);
    projectBlogEntryDTO.setProjectid(PROJECT_ID);
    // IUser instance which should be returned by mocked userManager
    // instance when getUser() method is called
    IUser author = new User();
    author.setName(AUTHOR_NAME);
    Mockito.when(userManager.getUser(AUTHOR_NAME)).thenReturn(author);
    // Calling getProjectBlogEntry method with dummy ProjectBlogEntryDTO
    // instance
    IProjectBlogEntry projectBlogEntry = projectBlogEntryDTOMapperUnderTest
            .getProjectBlogEntry(projectBlogEntryDTO);
    assertProjectBlogEntryMapping(projectBlogEntry);
}