// Path: src/main/java/com/sigopt/model/APIResource.java
// public final class APIResource {
//     public static <T extends APIObject> T constructFromJson(String json, Class <T> klass, String path) {
//         T instance;
//         try {
//             instance = klass.newInstance();
//         } catch (InstantiationException e) {
//             throw new RuntimeException(e);
//         } catch (IllegalAccessException e) {
//             throw new RuntimeException(e);
//         }
//         Type type = new TypeToken<Map<String, Object>>() {}.getType();
//         Map<String, Object> map = APIObject.fromJson(json, type);
//         instance.setAll(map);
//         instance.pathPrefix = path;
//         return instance;
//     }
// 
//     public static <T extends APIObject> T constructFromJson(String json, Class <T> klass) {
//         return constructFromJson(json, klass, "");
//     }
// 
//     public static <T extends APIObject> Pagination<T> constructPaginationFromJson(
//         String json,
//         Class<T> subklass
//     ) {
//         Pagination<T> p = new Pagination<T>(subklass);
//         Type type = new TypeToken<Map<String, Object>>() {}.getType();
//         Map<String, Object> map = APIObject.fromJson(json, type);
//         p.setAll(map);
//         return p;
//     }
// }
// 
// Path: src/test/java/com/sigopt/model/MockResource.java
// public class MockResource extends StructObject {
//     public MockResource() {
//         super();
//     }
// 
//     public MockResource(String id, String superAwesomeName) {
//         super();
//         this.set("id", id);
//         this.set("super_awesome_name", superAwesomeName);
//     }
// 
//     public String getId() {
//         return (String) this.get("id");
//     }
// 
//     public String getSuperAwesomeName() {
//         return (String) this.get("super_awesome_name");
//     }
// }


import com.sigopt.model.APIResource;
import com.sigopt.model.MockResource;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
package com.sigopt.net;




public class ParamsBuilderTest {
    HashMap<String, Object> params;

    @BeforeClass
// Path: src/main/java/com/sigopt/model/APIResource.java
// public final class APIResource {
//     public static <T extends APIObject> T constructFromJson(String json, Class <T> klass, String path) {
//         T instance;
//         try {
//             instance = klass.newInstance();
//         } catch (InstantiationException e) {
//             throw new RuntimeException(e);
//         } catch (IllegalAccessException e) {
//             throw new RuntimeException(e);
//         }
//         Type type = new TypeToken<Map<String, Object>>() {}.getType();
//         Map<String, Object> map = APIObject.fromJson(json, type);
//         instance.setAll(map);
//         instance.pathPrefix = path;
//         return instance;
//     }
// 
//     public static <T extends APIObject> T constructFromJson(String json, Class <T> klass) {
//         return constructFromJson(json, klass, "");
//     }
// 
//     public static <T extends APIObject> Pagination<T> constructPaginationFromJson(
//         String json,
//         Class<T> subklass
//     ) {
//         Pagination<T> p = new Pagination<T>(subklass);
//         Type type = new TypeToken<Map<String, Object>>() {}.getType();
//         Map<String, Object> map = APIObject.fromJson(json, type);
//         p.setAll(map);
//         return p;
//     }
// }
// 
// Path: src/test/java/com/sigopt/model/MockResource.java
// public class MockResource extends StructObject {
//     public MockResource() {
//         super();
//     }
// 
//     public MockResource(String id, String superAwesomeName) {
//         super();
//         this.set("id", id);
//         this.set("super_awesome_name", superAwesomeName);
//     }
// 
//     public String getId() {
//         return (String) this.get("id");
//     }
// 
//     public String getSuperAwesomeName() {
//         return (String) this.get("super_awesome_name");
//     }
// }


// Path: src/test/java/com/sigopt/net/ParamsBuilderTest.java
import com.sigopt.model.APIResource;
import com.sigopt.model.MockResource;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

package com.sigopt.net;




public class ParamsBuilderTest {
    HashMap<String, Object> params;

    @BeforeClass
    public static void setUp() {