@Test
public void testStopLoading() throws IOException {

	VSensorConfig  sensorConfig = new VSensorConfig();
	sensorConfig.setName("test");
	File someFile = File.createTempFile("bla", ".xml");
	sensorConfig.setMainClass("org.openiot.gsn.vsensor.BridgeVirtualSensor");
	sensorConfig.setFileName(someFile.getAbsolutePath());
	VirtualSensor pool = new VirtualSensor(sensorConfig);
	InputStream is = new InputStream();
	is.setInputStreamName("t1");
	is.setQuery("select * from my-stream1");
	StreamSource 	ss1 = new StreamSource().setAlias("my-stream1").setAddressing(new AddressBean[] {new AddressBean("mock-test")}).setSqlQuery("select * from wrapper").setRawHistorySize("2").setInputStream(is);		
	ss1.setSamplingRate(1);
	assertTrue(ss1.validate());
	is.setSources(ss1);
	assertTrue(is.validate());
	sensorConfig.setInputStreams(is);
	assertTrue(sensorConfig.validate());
	
}