@@ -0,0 +1,2669 @@
+package org.slc.sli.modeling.rest;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport java.util.ArrayList;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0A/**%0A * JUnit test for Resource class.%0A *%0A * @author wscott%0A *%0A */%0Apublic class ResourceTest %7B%0A%0A    private Resource resource;%0A%0A    private static final String ID = %22id%22;%0A    private static final ArrayList%3CString%3E TYPE = new ArrayList%3CString%3E(0);%0A    private static final String QUERY_TYPE = %22queryType%22;%0A    private static final String PATH = %22path%22;%0A    private static final ArrayList%3CDocumentation%3E DOC = new ArrayList%3CDocumentation%3E(0);%0A    private static final ArrayList%3CParam%3E PARAMS = new ArrayList%3CParam%3E(0);%0A    private static final ArrayList%3CMethod%3E METHODS = new ArrayList%3CMethod%3E(0);%0A    private static final ArrayList%3CResource%3E RESOURCES = new ArrayList%3CResource%3E(0);%0A%0A    @Before%0A    public void setup() throws Exception %7B%0A        resource = new Resource(ID, TYPE, QUERY_TYPE, PATH, DOC, PARAMS, METHODS, RESOURCES);%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testNullType() %7B%0A        new Resource(ID, null, QUERY_TYPE, PATH, DOC, PARAMS, METHODS, RESOURCES);%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testNullQeuryType() %7B%0A        new Resource(ID, TYPE, null, PATH, DOC, PARAMS, METHODS, RESOURCES);%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testNullParams() %7B%0A        new Resource(ID, TYPE, QUERY_TYPE, PATH, DOC, null, METHODS, RESOURCES);%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testNullMethods() %7B%0A        new Resource(ID, TYPE, QUERY_TYPE, PATH, DOC, PARAMS, null, RESOURCES);%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testNullResources() %7B%0A        new Resource(ID, TYPE, QUERY_TYPE, PATH, DOC, PARAMS, METHODS, null);%0A    %7D%0A%0A    @Test%0A    public void testGetId() %7B%0A        assertEquals(ID, resource.getId());%0A    %7D%0A%0A    @Test%0A    public void testGetMethods() %7B%0A        assertEquals(METHODS, resource.getMethods());%0A    %7D%0A%0A    @Test%0A    public void testGetParams() %7B%0A        assertEquals(PARAMS, resource.getParams());%0A    %7D%0A%0A    @Test%0A    public void testGetPath() %7B%0A        assertEquals(PATH, resource.getPath());%0A    %7D%0A%0A    @Test%0A    public void testGetQueryType() %7B%0A        assertEquals(QUERY_TYPE, resource.getQueryType());%0A    %7D%0A%0A    @Test%0A    public void testGetResources() %7B%0A        assertEquals(RESOURCES, resource.getResources());%0A    %7D%0A%0A    @Test%0A    public void testGetType() %7B%0A        assertEquals(TYPE, resource.getType());%0A    %7D%0A%0A    @Test%0A    public void testToString() %7B%0A        assertTrue(!%22%22.equals(resource.toString()));%0A    %7D%0A%0A%7D%0A

Add JUnit test for Resource class in rest modeling module.