@Test 
public void testGetRequest() throws Exception {

	PigResource resource= new PigResource();
	PigRequestParameters input= new PigRequestParameters();
	input.setHttpCallback("123");
	input.setPigScript("abc.pig");
	input.setRequestStartTime(new Date());
	
	String requestId= UUID.randomUUID().toString();
	Gson gson= new GsonBuilder().setPrettyPrinting().setDateFormat("yyyy/MM/dd-HH:mm").create();
	String inputString= Base64.encodeBase64URLSafeString(gson.toJson(input).getBytes());
	String path= PropertyLoader.getInstance().getProperty("requests.basepath") + requestId 
			+ "/input";
	
	BufferedWriter writer= new BufferedWriter(
			new OutputStreamWriter(fileSystem.create(new Path(path), false)));
iter.write(inputString);
iter.close();
	Response resp=  resource.getInput(requestId);
	Assert.assertEquals(resp.getStatus(), 200);
	
	requestId= "abc";
	try {
		resp=  resource.getInput(requestId);
	} catch (Exception e) {
		Assert.assertNotNull(e);
	}
	
	requestId= UUID.randomUUID().toString();
	fileSystem.mkdirs(new Path(PropertyLoader.getInstance().getProperty("requests.basepath") + requestId));
	try {
		resp=  resource.getInput(requestId);
	} catch (Exception e) {
		Assert.assertNotNull(e);
	}
}