@@ -0,0 +1,1242 @@
+package com.vishnus1224.teamworkapidemo.mapper;%0A%0Aimport com.vishnus1224.teamworkapidemo.TestDataStore;%0Aimport com.vishnus1224.teamworkapidemo.model.LatestActivityDto;%0Aimport com.vishnus1224.teamworkapidemo.model.LatestActivityModel;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.*;%0A%0A/**%0A * Created by Vishnu on 9/7/2016.%0A */%0Apublic class LatestActivityDtoToModelMapperTest extends TestDataStore%7B%0A%0A    private LatestActivityDtoToModelMapper latestActivityDtoToModelMapper;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A%0A        latestActivityDtoToModelMapper = new LatestActivityDtoToModelMapper();%0A    %7D%0A%0A    @Test%0A    public void testMap() throws Exception %7B%0A%0A        LatestActivityDto latestActivityDto = createLatestActivityDto(%221241%22, %22test description%22, %22test project%22);%0A%0A        LatestActivityModel latestActivityModel = latestActivityDtoToModelMapper.map(latestActivityDto);%0A%0A        assertNotNull(latestActivityModel);%0A%0A        assertEquals(latestActivityModel.companyId, %221241%22);%0A%0A        assertEquals(latestActivityModel.extraDescription, %22test description%22);%0A%0A        assertEquals(latestActivityModel.projectName, %22test project%22);%0A%0A        assertNull(latestActivityModel.link);%0A%0A    %7D%0A%7D

test for latest activity realm model to dto mapper