// Path: test/com/Upwork/api/Routers/Helper.java
// @RunWith(PowerMockRunner.class)
// public class Helper {
// 	@Mock
// 	protected OAuthClient client;
// 	
// 	@Before
// 	public void setUp() throws JSONException {
// 		MockitoAnnotations.initMocks(this);
//         when(client.get(Matchers.anyString())).thenReturn(new JSONObject("{'key': 'value'}"));
//         when(client.get(Matchers.anyString(), (HashMap<String, String>) Matchers.anyObject())).thenReturn(new JSONObject("{'key': 'value'}"));
//         when(client.post(Matchers.anyString(), (HashMap<String, String>) Matchers.anyObject())).thenReturn(new JSONObject("{'key': 'value'}"));
//         when(client.put(Matchers.anyString())).thenReturn(new JSONObject("{'key': 'value'}"));
//         when(client.put(Matchers.anyString(), (HashMap<String, String>) Matchers.anyObject())).thenReturn(new JSONObject("{'key': 'value'}"));
//         when(client.delete(Matchers.anyString())).thenReturn(new JSONObject("{'key': 'value'}"));
//         when(client.delete(Matchers.anyString(), (HashMap<String, String>) Matchers.anyObject())).thenReturn(new JSONObject("{'key': 'value'}"));
// 	}
// }
// 
// Path: src/com/Upwork/api/Routers/Reports/Finance/Earnings.java
// @ClassPreamble (
// 	author = "Maksym Novozhylov <mnovozhilov@upwork.com>",
// 	date = "6/4/2014",
// 	currentRevision = 1,
// 	lastModified = "6/4/2014",
// 	lastModifiedBy = "Maksym Novozhylov",
// 	reviewers = {"Yiota Tsakiri"}
// )
// public final class Earnings {
// 	
// 	final static String ENTRY_POINT = "gds";
// 	
// 	private OAuthClient oClient = null;
// 
// 	public Earnings(OAuthClient client) {
// 		oClient = client;
// 		oClient.setEntryPoint(ENTRY_POINT);
// 	}
// 	
// 	/**
//      * Generate Earning Reports for a Specific Freelancer
//      *
//      * @param   freelancerReference Freelancer's reference
//      * @param   params Parameters
//      * @throws	JSONException If error occurred
// 	 * @return	{@link JSONObject}
//      */
//     public JSONObject getByFreelancer(String freelancerReference, HashMap<String, String> params) throws JSONException {
//         return oClient.get("/finreports/v2/providers/" + freelancerReference + "/earnings", params);
//     }
// 
//     /**
//      * Generate Earning Reports for a Specific Freelancer's Team
//      *
//      * @param   freelancerTeamReference Freelancer's team reference
//      * @param   params Parameters
//      * @throws	JSONException If error occurred
// 	 * @return	{@link JSONObject}
//      */
//     public JSONObject getByFreelancersTeam(String freelancerTeamReference, HashMap<String, String> params) throws JSONException {
//         return oClient.get("/finreports/v2/provider_teams/" + freelancerTeamReference + "/earnings", params);
//     }
//     
//     /**
//      * Generate Earning Reports for a Specific Freelancer's Company
//      *
//      * @param   freelancerCompanyReference Freelancer's company reference
//      * @param   params Parameters
//      * @throws	JSONException If error occurred
// 	 * @return	{@link JSONObject}
//      */
//     public JSONObject getByFreelancersCompany(String freelancerCompanyReference, HashMap<String, String> params) throws JSONException {
//         return oClient.get("/finreports/v2/provider_companies/" + freelancerCompanyReference + "/earnings", params);
//     }
// 
//     /**
//      * Generate Earning Reports for a Specific Buyer's Team
//      *
//      * @param   buyerTeamReference Buyer team reference
//      * @param   params Parameters
//      * @throws	JSONException If error occurred
// 	 * @return	{@link JSONObject}
//      */
//     public JSONObject getByBuyersTeam(String buyerTeamReference, HashMap<String, String> params) throws JSONException {
//         return oClient.get("/finreports/v2/buyer_teams/" + buyerTeamReference + "/earnings", params);
//     }
//     
//     /**
//      * Generate Earning Reports for a Specific Buyer's Company
//      *
//      * @param   buyerCompanyReference Buyer company reference
//      * @param   params Parameters
//      * @throws	JSONException If error occurred
// 	 * @return	{@link JSONObject}
//      */
//     public JSONObject getByBuyersCompany(String buyerCompanyReference, HashMap<String, String> params) throws JSONException {
//         return oClient.get("/finreports/v2/buyer_companies/" + buyerCompanyReference + "/earnings", params);
//     }
// 
// }


import static org.junit.Assert.*;
import java.util.HashMap;
import org.json.JSONObject;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
import com.Upwork.api.Routers.Helper;
import com.Upwork.api.Routers.Reports.Finance.Earnings;
package com.Upwork.api.Routers.Reports.Finance;





@RunWith(PowerMockRunner.class)
@PrepareForTest({
	Earnings.class
})
// Path: test/com/Upwork/api/Routers/Helper.java
// @RunWith(PowerMockRunner.class)
// public class Helper {
// 	@Mock
// 	protected OAuthClient client;
// 	
// 	@Before
// 	public void setUp() throws JSONException {
// 		MockitoAnnotations.initMocks(this);
//         when(client.get(Matchers.anyString())).thenReturn(new JSONObject("{'key': 'value'}"));
//         when(client.get(Matchers.anyString(), (HashMap<String, String>) Matchers.anyObject())).thenReturn(new JSONObject("{'key': 'value'}"));
//         when(client.post(Matchers.anyString(), (HashMap<String, String>) Matchers.anyObject())).thenReturn(new JSONObject("{'key': 'value'}"));
//         when(client.put(Matchers.anyString())).thenReturn(new JSONObject("{'key': 'value'}"));
//         when(client.put(Matchers.anyString(), (HashMap<String, String>) Matchers.anyObject())).thenReturn(new JSONObject("{'key': 'value'}"));
//         when(client.delete(Matchers.anyString())).thenReturn(new JSONObject("{'key': 'value'}"));
//         when(client.delete(Matchers.anyString(), (HashMap<String, String>) Matchers.anyObject())).thenReturn(new JSONObject("{'key': 'value'}"));
// 	}
// }
// 
// Path: src/com/Upwork/api/Routers/Reports/Finance/Earnings.java
// @ClassPreamble (
// 	author = "Maksym Novozhylov <mnovozhilov@upwork.com>",
// 	date = "6/4/2014",
// 	currentRevision = 1,
// 	lastModified = "6/4/2014",
// 	lastModifiedBy = "Maksym Novozhylov",
// 	reviewers = {"Yiota Tsakiri"}
// )
// public final class Earnings {
// 	
// 	final static String ENTRY_POINT = "gds";
// 	
// 	private OAuthClient oClient = null;
// 
// 	public Earnings(OAuthClient client) {
// 		oClient = client;
// 		oClient.setEntryPoint(ENTRY_POINT);
// 	}
// 	
// 	/**
//      * Generate Earning Reports for a Specific Freelancer
//      *
//      * @param   freelancerReference Freelancer's reference
//      * @param   params Parameters
//      * @throws	JSONException If error occurred
// 	 * @return	{@link JSONObject}
//      */
//     public JSONObject getByFreelancer(String freelancerReference, HashMap<String, String> params) throws JSONException {
//         return oClient.get("/finreports/v2/providers/" + freelancerReference + "/earnings", params);
//     }
// 
//     /**
//      * Generate Earning Reports for a Specific Freelancer's Team
//      *
//      * @param   freelancerTeamReference Freelancer's team reference
//      * @param   params Parameters
//      * @throws	JSONException If error occurred
// 	 * @return	{@link JSONObject}
//      */
//     public JSONObject getByFreelancersTeam(String freelancerTeamReference, HashMap<String, String> params) throws JSONException {
//         return oClient.get("/finreports/v2/provider_teams/" + freelancerTeamReference + "/earnings", params);
//     }
//     
//     /**
//      * Generate Earning Reports for a Specific Freelancer's Company
//      *
//      * @param   freelancerCompanyReference Freelancer's company reference
//      * @param   params Parameters
//      * @throws	JSONException If error occurred
// 	 * @return	{@link JSONObject}
//      */
//     public JSONObject getByFreelancersCompany(String freelancerCompanyReference, HashMap<String, String> params) throws JSONException {
//         return oClient.get("/finreports/v2/provider_companies/" + freelancerCompanyReference + "/earnings", params);
//     }
// 
//     /**
//      * Generate Earning Reports for a Specific Buyer's Team
//      *
//      * @param   buyerTeamReference Buyer team reference
//      * @param   params Parameters
//      * @throws	JSONException If error occurred
// 	 * @return	{@link JSONObject}
//      */
//     public JSONObject getByBuyersTeam(String buyerTeamReference, HashMap<String, String> params) throws JSONException {
//         return oClient.get("/finreports/v2/buyer_teams/" + buyerTeamReference + "/earnings", params);
//     }
//     
//     /**
//      * Generate Earning Reports for a Specific Buyer's Company
//      *
//      * @param   buyerCompanyReference Buyer company reference
//      * @param   params Parameters
//      * @throws	JSONException If error occurred
// 	 * @return	{@link JSONObject}
//      */
//     public JSONObject getByBuyersCompany(String buyerCompanyReference, HashMap<String, String> params) throws JSONException {
//         return oClient.get("/finreports/v2/buyer_companies/" + buyerCompanyReference + "/earnings", params);
//     }
// 
// }


// Path: test/com/Upwork/api/Routers/Reports/Finance/EarningsTest.java
import static org.junit.Assert.*;
import java.util.HashMap;
import org.json.JSONObject;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
import com.Upwork.api.Routers.Helper;
import com.Upwork.api.Routers.Reports.Finance.Earnings;

package com.Upwork.api.Routers.Reports.Finance;





@RunWith(PowerMockRunner.class)
@PrepareForTest({
	Earnings.class
})
public class EarningsTest extends Helper {