@@ -0,0 +1,2327 @@
+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 Method class.%0A *%0A * @author wscott%0A *%0A */%0Apublic class MethodTest %7B%0A%0A    private Method method; // class under test%0A%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 String ID = %22id%22;%0A    private static final String VERB = Method.NAME_HTTP_GET;%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 String ILLEGAL_VERB = %22illegal verb%22;%0A%0A    @Before%0A    public void setup() throws Exception %7B%0A        method = new Method(ID, VERB, DOC, REQUEST, RESPONSES);%0A    %7D%0A%0A    @Test%0A    public void checkAllVerbs() %7B%0A        new Method(ID, Method.NAME_HTTP_DELETE, DOC, REQUEST, RESPONSES);%0A        new Method(ID, Method.NAME_HTTP_GET, DOC, REQUEST, RESPONSES);%0A        new Method(ID, Method.NAME_HTTP_PATCH, DOC, REQUEST, RESPONSES);%0A        new Method(ID, Method.NAME_HTTP_POST, DOC, REQUEST, RESPONSES);%0A        new Method(ID, Method.NAME_HTTP_PUT, DOC, REQUEST, RESPONSES);%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testNullVerb() %7B%0A        new Method(ID, null, DOC, REQUEST, RESPONSES);%0A    %7D%0A%0A    @Test(expected = NullPointerException.class)%0A    public void testNullResponses() %7B%0A        new Method(ID, VERB, DOC, REQUEST, null);%0A    %7D%0A%0A    @Test(expected = IllegalArgumentException.class)%0A    public void testCheckIllegalVerb() %7B%0A        new Method(ID, ILLEGAL_VERB, DOC, REQUEST, RESPONSES);%0A    %7D%0A%0A    @Test%0A    public void testGetId() %7B%0A        assertEquals(ID, method.getId());%0A    %7D%0A%0A    @Test%0A    public void testGetRequest() %7B%0A        assertEquals(REQUEST, method.getRequest());%0A    %7D%0A%0A    @Test%0A    public void testGetResponses() %7B%0A        assertEquals(RESPONSES, method.getResponses());%0A    %7D%0A%0A    @Test%0A    public void testGetVerb() %7B%0A        assertEquals(VERB, method.getVerb());%0A    %7D%0A%0A    @Test%0A    public void testToString() %7B%0A        assertTrue(!%22%22.equals(method.toString()));%0A    %7D%0A%0A%7D%0A

Add JUnit test for Method class in rest modeling module.