public class TestRequestFactoryQuery extends TestRequestFactory {
public HttpRequestBase createRequest(String requestFactoryClass,
String endpoint, String query) throws Exception {
final RequestFactory requestFactory = (RequestFactory) this.getClass()
.getClassLoader().loadClass(requestFactoryClass).newInstance();
final List<String> acceptedMediaTypes = new ArrayList<String>();
final HttpRequestBase request = requestFactory.createQueryRequest(
endpoint, null, null, query, acceptedMediaTypes);
return request;
}