public static int minBytesForPrecision(int precision) {
    Preconditions.checkArgument(0 <= precision && precision <= MAX_PRECISION);
    return minBytesForPrecision[precision];
  }
@Test
  public void minBytesForPrecision() {
    for (int precision = 0; precision <= DecimalUtils.MAX_PRECISION - 2; precision++) {
      int bytes = DecimalUtils.minBytesForPrecision(precision);
      Assert.assertTrue(bytes >= 1);
      Assert.assertTrue(Math.pow(2, Math.max(0, (bytes - 1) * 8 - 1)) <= Math.pow(10, precision));
      Assert.assertTrue(Math.pow(2, bytes * 8 - 1) >= Math.pow(10, precision));
    }
  }