@Test
	public void nonceTest() throws IOException {
		String nonce = "myUniqueNonce" + System.currentTimeMillis();
		String result = null;
		TeleSignRequest tr;
		if(!timeouts && !isHttpsProtocolSet)
			tr = new TeleSignRequest("https://rest.telesign.com", "/v1/phoneid/standard/" + PHONE_NUMBER, "GET", CUSTOMER_ID, SECRET_KEY);
		else if(timeouts && !isHttpsProtocolSet)
			tr = new TeleSignRequest("https://rest.telesign.com", "/v1/phoneid/standard/" + PHONE_NUMBER, "GET", CUSTOMER_ID, SECRET_KEY, connectTimeout, readTimeout);
		else if(!timeouts && isHttpsProtocolSet)
			tr = new TeleSignRequest("https://rest.telesign.com", "/v1/phoneid/standard/" + PHONE_NUMBER, "GET", CUSTOMER_ID, SECRET_KEY, HTTPS_PROTOCOL);
		else
			tr = new TeleSignRequest("https://rest.telesign.com", "/v1/phoneid/standard/" + PHONE_NUMBER, "GET", CUSTOMER_ID, SECRET_KEY, connectTimeout, readTimeout, HTTPS_PROTOCOL);
		
		tr.setNonce(nonce);
		
		assertNotNull(tr);
		
		result = tr.executeRequest();
		
		assertNotNull(result);
	
		Gson gson = new Gson();
		PhoneIdStandardResponse response = gson.fromJson(result, PhoneIdStandardResponse.class);
		
		assertTrue(response.errors.length == 0);
		
		result = tr.executeRequest();
		
		assertNotNull(result);
	
		response = gson.fromJson(result, PhoneIdStandardResponse.class);
		
		assertTrue(response.errors[0].code == -30012);
	}