@@ -0,0 +1,2588 @@
+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 ResourceType class.%0A *%0A * @author wscott%0A *%0A */%0Apublic class ResourceTypeTest %7B%0A%0A    private ResourceType resourceType; // class under test%0A%0A    private static final String ID = %22id%22;%0A    private static final String VERB = Method.NAME_HTTP_GET;%0A    private static final ArrayList%3CResponse%3E RESPONSES = new ArrayList%3CResponse%3E(0);%0A    private static final ArrayList%3CRepresentation%3E REPRESENTATIONS = new ArrayList%3CRepresentation%3E(0);%0A    private static final ArrayList%3CDocumentation%3E DOC = new ArrayList%3CDocumentation%3E(0);%0A    private static final Request REQUEST = new Request(DOC, new ArrayList%3CParam%3E(0), REPRESENTATIONS);%0A    private static final Method METHOD = new Method(ID, VERB, DOC, REQUEST, RESPONSES);%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%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    private static final Resource RESOURCE = new Resource(ID, TYPE, QUERY_TYPE, PATH, DOC, PARAMS, METHODS, RESOURCES);%0A%0A    @Before%0A    public void setup() throws Exception %7B%0A        resourceType = new ResourceType(ID, DOC, PARAMS, METHOD, RESOURCE);%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testNullId() %7B%0A        new ResourceType(null, DOC, PARAMS, METHOD, RESOURCE);%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testNullMethod() %7B%0A        new ResourceType(ID, DOC, PARAMS, null, RESOURCE);%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testNullParams() %7B%0A        new ResourceType(ID, DOC, null, METHOD, RESOURCE);%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testNullResource() %7B%0A        new ResourceType(ID, DOC, PARAMS, METHOD, null);%0A    %7D%0A%0A    @Test%0A    public void testGetId() %7B%0A        assertEquals(ID, resourceType.getId());%0A    %7D%0A%0A    @Test%0A    public void testGetMethod() %7B%0A        assertEquals(METHOD, resourceType.getMethod());%0A    %7D%0A%0A    @Test%0A    public void testGetParams() %7B%0A        assertEquals(PARAMS, resourceType.getParams());%0A    %7D%0A%0A    @Test%0A    public void testGetResource() %7B%0A        assertEquals(RESOURCE, resourceType.getResource());%0A    %7D%0A%0A%7D%0A

Add JUnit test for ResourceType class in rest modeling module.