### Question:
DefaultMethodConfigBuilder extends ConfigBuilder implements MethodConfigBuilder { public ParamConfigBuilder startParamConfig(int index) { return methodParamConfigBuilders.get(index); } DefaultMethodConfigBuilder(InterfaceConfigBuilder parent, Method method, CRestConfig crestConfig, ComponentRegistry<String,Deserializer> mimeDeserializerRegistry, ComponentRegistry<Class<?>, Serializer> classSerializerRegistry); MethodConfig build(); ParamConfigBuilder startParamConfig(int index); ParamConfigBuilder startExtraParamConfig(); MethodConfigBuilder setConsumes(String... mimeTypes); MethodConfigBuilder setCharset(Charset charset); MethodConfigBuilder setProduces(String contentType); MethodConfigBuilder appendPath(String path); MethodConfigBuilder setEndPoint(String endPoint); MethodConfigBuilder setType(MethodType meth); MethodConfigBuilder setSocketTimeout(int socketTimeout); MethodConfigBuilder setConnectionTimeout(int connectionTimeout); MethodConfigBuilder setDeserializer(Class<? extends Deserializer> deserializerClass); MethodConfigBuilder setRequestInterceptor(Class<? extends RequestInterceptor> requestInterceptorClass); MethodConfigBuilder setResponseHandler(Class<? extends ResponseHandler> responseHandlerClass); MethodConfigBuilder setErrorHandler(Class<? extends ErrorHandler> errorHandlerClass); MethodConfigBuilder setRetryHandler(Class<? extends RetryHandler> retryHandlerClass); MethodConfigBuilder setEntityWriter(Class<? extends EntityWriter> entityWriterClass); MethodConfigBuilder setParamsSerializer(Class<? extends Serializer> serializerClass); MethodConfigBuilder setParamsEncoded(boolean encoded); MethodConfigBuilder setParamsListSeparator(String listSeparator); @Override String toString();  }### Answer:
@Test public void startParamConfigShouldReturnPrecreatedMethodParamConfigBuilder() throws Exception { mockEndpoint(); MethodConfigBuilder toTest = newToTest(); assertSame(mockParamConfigBuilder1, toTest.startParamConfig(0)); assertSame(mockParamConfigBuilder2, toTest.startParamConfig(1)); try { toTest.startParamConfig(2); fail(); } catch (IndexOutOfBoundsException e) { } }