@Before
	public void setUp() throws Exception {
		try {
			String url = "http://bis.tv.widgets.yahoo.com/disc/getCode.php?format=json&ip=10.73.145.228&port=8099&appid=com%2Eyahoo%2Ewidgets%2Etv%2Esettings&appver=1%2E6%2E7&man=TV%20OEM%20Name&brand=TV%20Device%20Brand&class=TV%20Device%20Class&model=TV%20Device%20Model&deviceid=TV%20Device%20Id&hwversion=0%2E1&swversion=0%2E1&region=US&lang=en&yweversion=6%2E0%2E12&yweres=960x540&dockversion=1%2E6%2E10&fwversion=1%2E6%2E37&ts=1318276061&sig=407ac9c09891e7247c87ae2e5f04d3e3";
			URL urlConnection = new URL(url);

			HttpURLConnection conn = (HttpURLConnection) urlConnection.openConnection();
			conn.setConnectTimeout(1000);
			conn.setRequestMethod("GET");

			conn.connect();
			InputStream in = conn.getInputStream();
			BufferedReader reader = new BufferedReader(new InputStreamReader(in));
			String ipText = reader.readLine();
			conn.disconnect();

			JSONObject response = new JSONObject(ipText);
			this.code = response.getString("key");
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (JSONException je) {
			Utilities.log("could not parse json");
		}

		if (this.code == null || this.code.equals("")) {
			fail();
		}

		if (this.code.length() != 4) {
			fail();
		}
	}