fis.close();
} catch (IOException e) {
// ignore
}
JsonNode node = conn.finishUpload();
// System.out.println(node);
assert node != null : "No result from upload - node was null";
assert node.has("outcome") : "No outcome from upload";
String outcome = node.get("outcome").getTextValue();
assert outcome.equals("success") : "Upload was no success, but: [" + outcome + "]";