package com.github.jsonldjava.core;

import com.github.jsonldjava.utils.JsonUtils;
import java.io.IOException;
import org.junit.Test;
import static org.junit.Assert.*;

public class JsonLdFramingTest {

    @Test
    public void testFrame0001() throws IOException, JsonLdError {
        try {
            Object frame = JsonUtils.fromInputStream(
                    getClass().getResourceAsStream("/custom/frame-0001-frame.jsonld"));
            Object in = JsonUtils.fromInputStream(
                    getClass().getResourceAsStream("/custom/frame-0001-in.jsonld"));

            JsonLdProcessor.frame(in, frame, new JsonLdOptions());
        } catch (Throwable t) {
            t.printStackTrace();
            
            fail();
        }
    }

}

@@ -104,16 +104,39 @@
 eption;%0A
+import java.util.Map;%0A%0A
 import o
@@ -299,26 +299,8 @@
 r %7B%0A
-        try %7B%0A    
     
@@ -353,36 +353,32 @@
                 
-  
-  
 getClass().getRe
@@ -433,28 +433,24 @@
 ));%0A        
-    
 Object in = 
@@ -468,36 +468,32 @@
 romInputStream(%0A
-    
                 
@@ -566,19 +566,44 @@
         
-   
+Map%3CString, Object%3E frame2 =
  JsonLdP
@@ -662,107 +662,48 @@
     
-%7D catch (Throwable t) %7B%0A            t.printStackTrace();%0A            %0A            fail();%0A        %7D
+%0A        assertEquals(2, frame2.size());
 %0A   

Add positive test for completion in the framing test