// Path: src/main/java/org/ominidi/domain/model/Post.java
// @Getter
// public class Post {
//     private final String id;
//     private final String objectId;
//     private final String createdTime;
//     private final String type;
//     private final String link;
//     private final String permalinkUrl;
//     private final String picture;
//     private final String fullPicture;
//     private final String message;
// 
//     public Post(
//             String id,
//             String objectId,
//             String createdTime,
//             String type,
//             String link,
//             String permalinkUrl,
//             String picture,
//             String fullPicture,
//             String message
//     ) {
//         this.id = id;
//         this.objectId = objectId;
//         this.createdTime = createdTime;
//         this.type = type;
//         this.link = link;
//         this.permalinkUrl = permalinkUrl;
//         this.picture = picture;
//         this.fullPicture = fullPicture;
//         this.message = message;
//     }
// }


import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import com.restfb.json.Json;
import com.restfb.json.JsonObject;
import org.junit.BeforeClass;
import org.junit.Test;
import org.ominidi.domain.model.Post;
import static org.junit.Assert.*;

package org.ominidi.facebook.mapper;




public class PostMapperTest {
    private static JsonObject jsonObject;

    @BeforeClass
    public static void setUp() throws IOException {
        byte[] encoded = Files.readAllBytes(Paths.get("src/test/resources/fixtures/post.json"));
        String str = new String(encoded);
        jsonObject = Json.parse(str).asObject();
    }

    @Test
    public void shouldMapJsonValueToAPostObject()  {
        PostMapper mapper = new PostMapper();

// Path: src/main/java/org/ominidi/domain/model/Post.java
// @Getter
// public class Post {
//     private final String id;
//     private final String objectId;
//     private final String createdTime;
//     private final String type;
//     private final String link;
//     private final String permalinkUrl;
//     private final String picture;
//     private final String fullPicture;
//     private final String message;
// 
//     public Post(
//             String id,
//             String objectId,
//             String createdTime,
//             String type,
//             String link,
//             String permalinkUrl,
//             String picture,
//             String fullPicture,
//             String message
//     ) {
//         this.id = id;
//         this.objectId = objectId;
//         this.createdTime = createdTime;
//         this.type = type;
//         this.link = link;
//         this.permalinkUrl = permalinkUrl;
//         this.picture = picture;
//         this.fullPicture = fullPicture;
//         this.message = message;
//     }
// }


// Path: src/test/java/org/ominidi/facebook/mapper/PostMapperTest.java
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import com.restfb.json.Json;
import com.restfb.json.JsonObject;
import org.junit.BeforeClass;
import org.junit.Test;
import org.ominidi.domain.model.Post;
import static org.junit.Assert.*;

package org.ominidi.facebook.mapper;




public class PostMapperTest {
    private static JsonObject jsonObject;

    @BeforeClass
    public static void setUp() throws IOException {
        byte[] encoded = Files.readAllBytes(Paths.get("src/test/resources/fixtures/post.json"));
        String str = new String(encoded);
        jsonObject = Json.parse(str).asObject();
    }

    @Test
    public void shouldMapJsonValueToAPostObject()  {
        PostMapper mapper = new PostMapper();

        Post post = mapper.fromType(jsonObject);
