### Question:
StagedData implements Serializable { public long getDownloadSize() throws IOException { getLocationURL(); return locationURL.openConnection().getContentLengthLong(); }  long getDownloadSize(); URL getLocationURL(); String getLocation(); void setLocation(String location); String getInstallRoot(); void setInstallRoot(String installRoot); void setUnarchive(boolean unarchive); void setRemoveOnDestroy(boolean removeOnDestroy); void setOverwrite(boolean overwrite); void setPerms(String perms); boolean unarchive(); boolean removeOnDestroy(); boolean overwrite(); String getPerms(); String toString();  }### Answer:
@Test public void testGetDownloadSize() throws IOException { StagedData stagedData = new StagedData(); stagedData.setLocation("https: long size = stagedData.getDownloadSize(); assertTrue(size != -1); }