// Path: src/main/java/io/pivio/view/app/overview/detail/serverresponse/Document.java
// @JsonIgnoreProperties(ignoreUnknown = true)
// public class Document {
// 
//     public String owner;
//     public String data_format_version;
//     public String description;
//     public String type;
//     public String vcsroot;
//     public String name;
//     public String short_name;
//     public String id;
//     public String contact;
//     public String created;
//     public String lastUpload;
//     public String lastUpdate;
//     public String status;
//     public String product_context;
//     public List<String> tags = new ArrayList<>();
//     public Map<String, String> links = new HashMap<>();
// 
//     public Runtime runtime = new Runtime();
//     public List<SoftwareDependency> software_dependencies = new ArrayList<>();
//     public Service service = new Service();
//     public Context context = new Context();
// 
//     @Override
//     public String toString() {
//         return "Document{" +
//                 "owner='" + owner + '\'' +
//                 ", data_format_version='" + data_format_version + '\'' +
//                 ", description='" + description + '\'' +
//                 ", type='" + type + '\'' +
//                 ", vcsroot='" + vcsroot + '\'' +
//                 ", name='" + name + '\'' +
//                 ", short_name='" + short_name + '\'' +
//                 ", id='" + id + '\'' +
//                 ", contact='" + contact + '\'' +
//                 ", created='" + created + '\'' +
//                 ", lastUpload='" + lastUpload + '\'' +
//                 ", lastUpdate='" + lastUpdate + '\'' +
//                 ", status='" + status + '\'' +
//                 ", product_context='" + product_context + '\'' +
//                 ", tags=" + tags +
//                 ", links=" + links +
//                 ", runtime=" + runtime +
//                 ", software_dependencies=" + software_dependencies +
//                 ", service=" + service +
//                 ", context=" + context +
//                 '}';
//     }
// 
//     public boolean ofTypeService() {
//         return type.equalsIgnoreCase("service");
//     }
// 
// }


import com.fasterxml.jackson.databind.ObjectMapper;
import io.pivio.view.app.overview.detail.serverresponse.Document;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import static org.assertj.core.api.Assertions.assertThat;
package io.pivio.view.app.overview.detail;





public class DocumentMapperTest {

    @Test
    public void testMapDetail() throws IOException {
        ObjectMapper mapper = new ObjectMapper();

// Path: src/main/java/io/pivio/view/app/overview/detail/serverresponse/Document.java
// @JsonIgnoreProperties(ignoreUnknown = true)
// public class Document {
// 
//     public String owner;
//     public String data_format_version;
//     public String description;
//     public String type;
//     public String vcsroot;
//     public String name;
//     public String short_name;
//     public String id;
//     public String contact;
//     public String created;
//     public String lastUpload;
//     public String lastUpdate;
//     public String status;
//     public String product_context;
//     public List<String> tags = new ArrayList<>();
//     public Map<String, String> links = new HashMap<>();
// 
//     public Runtime runtime = new Runtime();
//     public List<SoftwareDependency> software_dependencies = new ArrayList<>();
//     public Service service = new Service();
//     public Context context = new Context();
// 
//     @Override
//     public String toString() {
//         return "Document{" +
//                 "owner='" + owner + '\'' +
//                 ", data_format_version='" + data_format_version + '\'' +
//                 ", description='" + description + '\'' +
//                 ", type='" + type + '\'' +
//                 ", vcsroot='" + vcsroot + '\'' +
//                 ", name='" + name + '\'' +
//                 ", short_name='" + short_name + '\'' +
//                 ", id='" + id + '\'' +
//                 ", contact='" + contact + '\'' +
//                 ", created='" + created + '\'' +
//                 ", lastUpload='" + lastUpload + '\'' +
//                 ", lastUpdate='" + lastUpdate + '\'' +
//                 ", status='" + status + '\'' +
//                 ", product_context='" + product_context + '\'' +
//                 ", tags=" + tags +
//                 ", links=" + links +
//                 ", runtime=" + runtime +
//                 ", software_dependencies=" + software_dependencies +
//                 ", service=" + service +
//                 ", context=" + context +
//                 '}';
//     }
// 
//     public boolean ofTypeService() {
//         return type.equalsIgnoreCase("service");
//     }
// 
// }


// Path: src/test/java/io/pivio/view/app/overview/detail/DocumentMapperTest.java
import com.fasterxml.jackson.databind.ObjectMapper;
import io.pivio.view.app.overview.detail.serverresponse.Document;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import static org.assertj.core.api.Assertions.assertThat;

package io.pivio.view.app.overview.detail;





public class DocumentMapperTest {

    @Test
    public void testMapDetail() throws IOException {
        ObjectMapper mapper = new ObjectMapper();

        Document document = mapper.readValue(new File("src/test/resources/detail.json"), Document.class);