@Test
public void testUnRegisterScript() throws Exception {

	PigResource resource= new PigResource();
	String str= "STORE E into '$output' using PigStorage(',');";
	InputStream input= new ByteArrayInputStream(str.getBytes("UTF-8"));
	Response resp= resource.registerScript("delete.pig", input);
	Assert.assertEquals(resp.getStatus(), 200);
	
	resource.unregisterScript("delete.pig");
	Assert.assertEquals(resp.getStatus(), 200);
	
	try {
		resource.unregisterScript("delete1.pig");
	} catch (Exception e) {
		Assert.assertNotNull(e);
	}
}