### Question:
SqlDecimal { @JsonValue @Override public String toString() { return Decimals.toString(unscaledValue, scale); } SqlDecimal(BigInteger unscaledValue, int precision, int scale); @Override boolean equals(Object o); int getPrecision(); int getScale(); static SqlDecimal of(String decimalValue); static SqlDecimal of(String unscaledValue, int precision, int scale); static SqlDecimal of(long unscaledValue, int precision, int scale); @Override int hashCode(); @JsonValue @Override String toString(); BigDecimal toBigDecimal(); BigInteger getUnscaledValue();  }### Answer:
@Test public void testToString() { assertEquals(new SqlDecimal(new BigInteger("0"), 2, 1).toString(), "0.0"); assertEquals(new SqlDecimal(new BigInteger("0"), 3, 2).toString(), "0.00"); assertEquals(new SqlDecimal(new BigInteger("0"), 6, 5).toString(), "0.00000"); assertEquals(new SqlDecimal(new BigInteger("0"), 10, 5).toString(), "0.00000"); assertEquals(new SqlDecimal(new BigInteger("1"), 2, 1).toString(), "0.1"); assertEquals(new SqlDecimal(new BigInteger("0"), 3, 3).toString(), "0.000"); assertEquals(new SqlDecimal(new BigInteger("1"), 1, 0).toString(), "1"); assertEquals(new SqlDecimal(new BigInteger("1000"), 4, 3).toString(), "1.000"); assertEquals(new SqlDecimal(new BigInteger("12345678901234567890123456789012345678"), 38, 20) .toString(), "123456789012345678.90123456789012345678"); assertEquals(new SqlDecimal(new BigInteger("-10"), 2, 1).toString(), "-1.0"); assertEquals(new SqlDecimal(new BigInteger("-100"), 3, 2).toString(), "-1.00"); assertEquals(new SqlDecimal(new BigInteger("-100000"), 6, 5).toString(), "-1.00000"); assertEquals(new SqlDecimal(new BigInteger("-100000"), 10, 5).toString(), "-1.00000"); assertEquals(new SqlDecimal(new BigInteger("-1"), 2, 1).toString(), "-0.1"); assertEquals(new SqlDecimal(new BigInteger("-1"), 3, 3).toString(), "-0.001"); assertEquals(new SqlDecimal(new BigInteger("-1"), 1, 0).toString(), "-1"); assertEquals(new SqlDecimal(new BigInteger("-1000"), 4, 3).toString(), "-1.000"); assertEquals(new SqlDecimal(new BigInteger("-12345678901234567890123456789012345678"), 38, 20) .toString(), "-123456789012345678.90123456789012345678"); }