private void getAuthTokenTest(String host, String usr, String pwd, boolean basic, boolean isPeerAqListener)
	{
		String wsdlUrl, url;
		if(isPeerAqListener) {
			if(basic) {
				wsdlUrl = TestContext.AcquisitionServiceAqListenerBasicUrl;
				url = TestContext.AcquisitionServiceAqListenerBasicUrl;
			} else {
				wsdlUrl = TestContext.AcquisitionServiceAqListenerUrl;
				url = TestContext.AcquisitionServiceAqListenerUrl;
			}
		} else {
			if(basic) {
				wsdlUrl = TestContext.AcquisitionServiceUrl;
				url = TestContext.AcquisitionServiceBasicUrl;
			} else {
				wsdlUrl = TestContext.AcquisitionServiceUrl;
				url = TestContext.AcquisitionServiceUrl;
			}
		}	
		try
		{
			IAQAcquisitionService client = basic ? AqWsFactory.newAqAcqBasicClient(wsdlUrl, url) : AqWsFactory.newAqAcqClient(url);
			Assert.assertTrue(client!=null);			
			String token = client.getAuthToken(usr, pwd);			
			Assert.assertTrue(token!=null && token.length()>0);
			AqWsFactory.close(client);
		}
		catch(Exception ex)
		{
			fail(ex.toString());
		}
	}