### Question:
Convert { public static BigDecimal fromSha(String number, Unit unit) { return fromSha(new BigDecimal(number), unit); } private  Convert(); static BigDecimal fromSha(String number, Unit unit); static BigDecimal fromSha(BigDecimal number, Unit unit); static BigDecimal toSha(String number, Unit unit); static BigDecimal toSha(BigDecimal number, Unit unit);  }### Answer:
@Test public void testFromSha() { assertThat(Convert.fromSha("21000000000000", Convert.Unit.SHA), is(new BigDecimal("21000000000000"))); assertThat(Convert.fromSha("21000000000000", Convert.Unit.KSHA), is(new BigDecimal("21000000000"))); assertThat(Convert.fromSha("21000000000000", Convert.Unit.MSHA), is(new BigDecimal("21000000"))); assertThat(Convert.fromSha("21000000000000", Convert.Unit.GSHA), is(new BigDecimal("21000"))); assertThat(Convert.fromSha("21000000000000", Convert.Unit.SAND), is(new BigDecimal("21"))); assertThat(Convert.fromSha("21000000000000", Convert.Unit.MILLI), is(new BigDecimal("0.021"))); assertThat(Convert.fromSha("21000000000000", Convert.Unit.MC), is(new BigDecimal("0.000021"))); assertThat(Convert.fromSha("21000000000000", Convert.Unit.KMC), is(new BigDecimal("0.000000021"))); assertThat(Convert.fromSha("21000000000000", Convert.Unit.MMC), is(new BigDecimal("0.000000000021"))); assertThat(Convert.fromSha("21000000000000", Convert.Unit.GMC), is(new BigDecimal("0.000000000000021"))); }