// Path: javabank-core/src/main/java/org/mbtest/javabank/http/responses/Response.java
// public abstract class Response extends HashMap {
// 
//     public JSONObject getJSON() {
//         return new JSONObject(this);
//     }
// 
//     public String toString() {
//         return getJSON().toJSONString();
//     }
// }


import org.junit.Before;
import org.junit.Test;
import org.mbtest.javabank.http.responses.Response;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.mock;
package org.mbtest.javabank.fluent;



public class ResponseTypeBuilderTest {

    private ResponseBuilder parent;
    private ResponseTypeBuilder responseTypeBuilder;

    @Before
    public void setUp() throws Exception {
        parent = mock(ResponseBuilder.class);
        responseTypeBuilder = new TestResponseBuilder(parent);

    }

    @Test
    public void shouldEndWithItsParent() throws Exception {
        assertThat(responseTypeBuilder.end(), is(parent));
    }

    private class TestResponseBuilder extends ResponseTypeBuilder {

        TestResponseBuilder(ResponseBuilder parent) {
            super(parent);
        }

        @Override
// Path: javabank-core/src/main/java/org/mbtest/javabank/http/responses/Response.java
// public abstract class Response extends HashMap {
// 
//     public JSONObject getJSON() {
//         return new JSONObject(this);
//     }
// 
//     public String toString() {
//         return getJSON().toJSONString();
//     }
// }


// Path: javabank-core/src/test/java/org/mbtest/javabank/fluent/ResponseTypeBuilderTest.java
import org.junit.Before;
import org.junit.Test;
import org.mbtest.javabank.http.responses.Response;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Mockito.mock;

package org.mbtest.javabank.fluent;



public class ResponseTypeBuilderTest {

    private ResponseBuilder parent;
    private ResponseTypeBuilder responseTypeBuilder;

    @Before
    public void setUp() throws Exception {
        parent = mock(ResponseBuilder.class);
        responseTypeBuilder = new TestResponseBuilder(parent);

    }

    @Test
    public void shouldEndWithItsParent() throws Exception {
        assertThat(responseTypeBuilder.end(), is(parent));
    }

    private class TestResponseBuilder extends ResponseTypeBuilder {

        TestResponseBuilder(ResponseBuilder parent) {
            super(parent);
        }

        @Override
        protected Response build() {