/**
 * Copyright © 2016 Ariel Segura (ariel.segura@yahoo.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package ramlmockserver.api;

import org.junit.Test;

import static org.junit.Assert.fail;

/**
 * Created by Ariel on 18/12/2016.
 */
public class BuilderTest {
    @Test
    public void implement(){
        fail();
    }
}

@@ -673,116 +673,585 @@
 st;%0A
-%0Aimport static org.junit.Assert.fail;%0A%0A/**%0A * Created by Ariel on 18/12/2016.%0A */%0Apublic class BuilderTest %7B
+import ramlmockserver.api.requestmapping.RequestMapping;%0Aimport ramlmockserver.api.requestmapping.RequestMappingBuilder;%0Aimport ramlmockserver.internal.ResourceMap;%0Aimport ramlmockserver.internal.UriParameter;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Optional;%0A%0Aimport static org.junit.Assert.assertTrue;%0Aimport static org.junit.Assert.fail;%0A%0A/**%0A * Created by Ariel on 18/12/2016.%0A */%0Apublic class BuilderTest %7B%0A    String employeeId = %221234%22;%0A    String invalidPhoneId = %22invalidPhoneId%22;%0A    String invalidEmployeeId = %22invalidEmployeeId%22;%0A    String phoneId = %221234556%22;%0A
 %0A   
@@ -1277,34 +1277,1336 @@
 oid 
+s
 imple
-ment()%7B%0A        fail(
+Scenario()%7B%0A        String resourceName = %22/v1/employees/%7BemployeeId%7D/phones%22;%0A        RequestMapping requestMapping =%0A                RequestMappingBuilder.requestMappingBuilder().%0A                        addResource(resourceName, RequestMappingBuilder.resourceConfig()%0A                                .configureStatusCode(404, RequestMappingBuilder.uriParameter(%22employeeId%22, invalidEmployeeId))%0A                                .configureStatusCode(200, RequestMappingBuilder.uriParameter(%22employeeId%22, employeeId))%0A                                .build())%0A                        .build();%0A%0A        Optional%3CResourceMap%3E resource = requestMapping.getResource(resourceName);%0A        assertTrue(resource.isPresent());%0A        ResourceMap resourceMap = resource.get();%0A%0A        Optional%3CUriParameter%5B%5D%3E notFound = resourceMap.getStatusCode(404);%0A        assertTrue(notFound.isPresent());%0A%0A        UriParameter%5B%5D uriParameters = notFound.get();%0A        assertTrue(Arrays.stream(uriParameters).anyMatch(uriParameter -%3E uriParameter.getKey().equals(%22employeeId%22)));%0A%0A        Optional%3CUriParameter%5B%5D%3E ok = resourceMap.getStatusCode(404);%0A        assertTrue(ok.isPresent());%0A%0A        uriParameters = ok.get();%0A        assertTrue(Arrays.stream(uriParameters).anyMatch(uriParameter -%3E uriParameter.getKey().equals(%22employeeId%22))
 );%0A 

test fixing