@@ -0,0 +1,2069 @@
+import com.google.appengine.api.datastore.Key;%0Aimport com.google.appengine.api.datastore.KeyFactory;%0Aimport com.google.apphosting.api.DatastorePb;%0Aimport com.google.sps.data.Marker;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport  org.junit.jupiter.api.Assertions;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.JUnit4;%0Aimport com.google.appengine.api.datastore.Entity;%0Aimport static org.mockito.Mockito;%0A%0Aimport java.util.Optional;%0A%0Aimport static org.junit.jupiter.api.Assertions.*;%0A%0A@RunWith(JUnit4.class)%0Apublic final class MarkerTest %7B%0A    private Marker marker;%0A%0A    @Before%0A    public void setUp() %7B%0A        marker = new Marker.Builder()%0A                .setId(1111)%0A                .setLat(1)%0A                .setLng(1)%0A                .setAnimal(%22animal%22)%0A                .setReporter(%22reporter%22)%0A                .setDescription(%22description%22)%0A                .setUserId(Optional.of(%22userId%22))%0A                .setBlobKey(%22blobKey%22)%0A                .build();%0A    %7D%0A%0A    @Test%0A    public void createMarker() %7B%0A        assertTrue(marker != null);%0A    %7D%0A%0A    @Test%0A    public void initializeMarker() %7B%0A        assertEquals(1111, marker.getId());%0A        assertEquals(1, marker.getLat());%0A        assertEquals(1, marker.getLng());%0A        assertEquals(%22animal%22, marker.getAnimal());%0A        assertEquals(%22reporter%22, marker.getReporter());%0A        assertEquals(%22description%22, marker.getDescription());%0A        assertEquals(Optional.of(%22userId%22), marker.getUserId());%0A        assertEquals(%22blobKey%22, marker.getBlobKey());%0A    %7D%0A%0A    @Test%0A    public void entityToMarker() %7B%0A        Entity entit = mock(Entity)%0A        Entity markerEntity = new Entity(%22Marker%22,1111);%0A        markerEntity.setProperty(%22lat%22, 1);%0A        markerEntity.setProperty(%22lng%22, 1);%0A        markerEntity.setProperty(%22animal%22, %22animal%22);%0A        markerEntity.setProperty(%22reporter%22, %22reporter%22);%0A        markerEntity.setProperty(%22description%22, %22description%22);%0A        markerEntity.setProperty(%22blobKey%22, %22blobKey%22);%0A        markerEntity.setProperty(%22userId%22, %22userId%22);%0A%0A    %7D%0A%7D

Test creation and initialization of a Marker instance