HumanReadableSize { public static String parse(final BigDecimal size) throws IllegalArgumentException { return parse(size.longValueExact()); } private  HumanReadableSize(); static String parse(final BigDecimal size); static String parse(final Long size); static String parse(final Integer size); static String parse(final String size); static String[] sanitize(final String size);  }
@Test public void terabyteLargeSizeFailed() { assertEquals("68.44TB", HumanReadableSize.parse("75240135239680")); }
@Test public void gigabyteLargeSizeAsBigDecimal() { assertEquals("68.44GB", HumanReadableSize.parse(new BigDecimal("73476694570"))); }
@Test public void gigabyteLargeSizeFailed() { assertEquals("68.44GB", HumanReadableSize.parse("73476694570")); }
@Test public void megabyteLargeSizeFailed() { assertEquals("68.44MB", HumanReadableSize.parse("71754584")); }