output: #fixed code
                               @Test
  	public void testMultipartInputStreamContentType() throws JSONException, InterruptedException, ExecutionException, URISyntaxException, UnirestException, FileNotFoundException {
  		FileInputStream stream = new FileInputStream(new File(getClass().getResource("/image.jpg").toURI()));
  		MultipartBody request = Unirest.post(HOST + "/post")
  			.field("name", "Mark")
  			.field("file", stream, ContentType.APPLICATION_OCTET_STREAM, "image.jpg");
  
  		HttpResponse<JsonNode> jsonResponse = request
  			.asJson();
  
  		assertTrue(jsonResponse.getHeaders().size() > 0);
  		assertTrue(jsonResponse.getBody().toString().length() > 0);
  		assertFalse(jsonResponse.getRawBody() == null);
  		assertEquals(200, jsonResponse.getStatus());
  
  		JsonNode json = jsonResponse.getBody();
  		assertFalse(json.isArray());
  		JSONObject object = json.getObject();
  		assertNotNull(object);
  		assertNotNull(json.getArray());
  		assertEquals(1, json.getArray().length());
  		assertNotNull(json.getArray().get(0));
  		assertNotNull(object.getJSONObject("files"));
  
  		assertTrue(json.getObject().getJSONObject("files").getString("type").contains("application/octet-stream"));
  		assertEquals("Mark", json.getObject().getJSONObject("form").getString("name"));
  	}
input: #vulnerable code 
                               @Test
  	public void testMultipartInputStreamContentType() throws JSONException, InterruptedException, ExecutionException, URISyntaxException, UnirestException, FileNotFoundException {
  		HttpResponse<JsonNode> jsonResponse = Unirest.post("http://httpbin.org/post").field("name", "Mark").field("file", new FileInputStream(new File(getClass().getResource("/image.jpg").toURI())), ContentType.APPLICATION_OCTET_STREAM, "image.jpg").asJson();
  		assertTrue(jsonResponse.getHeaders().size() > 0);
  		assertTrue(jsonResponse.getBody().toString().length() > 0);
  		assertFalse(jsonResponse.getRawBody() == null);
  		assertEquals(200, jsonResponse.getStatus());
  
  		JsonNode json = jsonResponse.getBody();
  		assertFalse(json.isArray());
  		assertNotNull(json.getObject());
  		assertNotNull(json.getArray());
  		assertEquals(1, json.getArray().length());
  		assertNotNull(json.getArray().get(0));
  		assertNotNull(json.getObject().getJSONObject("files"));
  
  		assertTrue(json.getObject().getJSONObject("files").getString("file").contains("data:application/octet-stream"));
  		assertEquals("Mark", json.getObject().getJSONObject("form").getString("name"));
  	} 
                              #location 3 
                              #vulnerability type RESOURCE_LEAK