package org.slc.sli.modeling.rest;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.Before;
import org.junit.Test;

/**
 * JUnit test for Response class.
 *
 * @author wscott
 *
 */
public class ResponseTest {
    private static final ArrayList<String> STATUS_CODES = new ArrayList<String>(0);
    private static final ArrayList<Documentation> DOC = new ArrayList<Documentation>(0);
    private static final ArrayList<Param> PARAMS = new ArrayList<Param>(0);
    private static final ArrayList<Representation> REPRESENTATIONS = new ArrayList<Representation>(0);
    private Response response;

    @Before
    public void setup() throws Exception {
        response = new Response(STATUS_CODES, DOC, PARAMS, REPRESENTATIONS);
    }

    @Test
    public void testNullStatusCodes() {
        new Response(null, DOC, PARAMS, REPRESENTATIONS);
    }

    @Test
    public void testNullParams() {
        new Response(STATUS_CODES, DOC, null, REPRESENTATIONS);
    }

    @Test
    public void testNullRepresentations() {
        new Response(STATUS_CODES, DOC, PARAMS, null);
    }

    @Test
    public void testGetStatusCodes() {
        assertEquals(STATUS_CODES, response.getStatusCodes());
    }

    @Test
    public void testGetParams() {
        assertEquals(PARAMS, response.getParams());
    }

    @Test
    public void testGetRepresentations() {
        assertEquals(REPRESENTATIONS, response.getRepresentations());
    }

    @Test
    public void testToString() {
        assertTrue(!"".equals(response.toString()));
    }

}

@@ -760,33 +760,72 @@
     %7D%0A%0A    @Test
+(expected = NullPointerException.class)
 %0A
-
     public void 
@@ -914,32 +914,71 @@
     %7D%0A%0A    @Test
+(expected = NullPointerException.class)
 %0A    public void
@@ -1060,32 +1060,32 @@
 ATIONS);%0A    %7D%0A%0A
-
     @Test%0A    pu
@@ -1069,32 +1069,71 @@
     %7D%0A%0A    @Test
+(expected = NullPointerException.class)
 %0A    public void

Add expected NPE to tests.