#fixed code
                             @Test
	public void testQueryStringEncoding() throws JSONException, UnirestException {
		String testKey = "email2=someKey&email";
		String testValue = "hello@hello.com";

		HttpResponse<JsonNode> response = Unirest.get(MockServer.GETJSON)
                .queryString(testKey, testValue)
                .asJson();

		parse(response).assertQuery(testKey, testValue);
	}
#vulnerable code 
                             @Test
	public void testQueryStringEncoding() throws JSONException, UnirestException {
		String testKey = "email2=someKey&email";
		String testValue = "hello@hello.com";
		HttpResponse<JsonNode> response = Unirest.get("http://httpbin.org/get").queryString(testKey, testValue).asJson();
		assertEquals(testValue, response.getBody().getObject().getJSONObject("args").getString(testKey));
	} 
                            #location 6 
                            #vulnerability type NULL_DEREFERENCE