VaultInventoryPrinter { public String printArchiveSize(final JSONObject archive) throws JSONException { final BigDecimal size = archive.getBigDecimal("Size"); final String humanReadableSize = HumanReadableSize.parse(size); return size + " (" + humanReadableSize + ")"; } VaultInventoryPrinter();  VaultInventoryPrinter(final String inventory); String getInventory(); void setInventory(final String inventory); void printInventory(final OutputStream out); String printArchiveSize(final JSONObject archive);  }
@Test public void test68GbLargeInventorySizeInteger() { final JSONObject inventoryJson = new JSONObject("{\"Size\": 73476694570 }"); final VaultInventoryPrinter printer = new VaultInventoryPrinter(); final String readableSize = printer.printArchiveSize(inventoryJson); assertEquals("73476694570 (68.44GB)", readableSize); }