@Test
public void testToWei() {

    assertThat(Convert.toVon("21", Convert.Unit.VON), is(new BigDecimal("21")));
    assertThat(Convert.toVon("21", Convert.Unit.KVON), is(new BigDecimal("21000")));
    assertThat(Convert.toVon("21", Convert.Unit.MVON), is(new BigDecimal("21000000")));
    assertThat(Convert.toVon("21", Convert.Unit.GVON), is(new BigDecimal("21000000000")));
    assertThat(Convert.toVon("21", Convert.Unit.SZABO), is(new BigDecimal("21000000000000")));
    assertThat(Convert.toVon("21", Convert.Unit.FINNEY),
            is(new BigDecimal("21000000000000000")));
    assertThat(Convert.toVon("21", Convert.Unit.LAT),
            is(new BigDecimal("21000000000000000000")));
    assertThat(Convert.toVon("21", Convert.Unit.KLAT),
            is(new BigDecimal("21000000000000000000000")));
    assertThat(Convert.toVon("21", Convert.Unit.MLAT),
            is(new BigDecimal("21000000000000000000000000")));
    assertThat(Convert.toVon("21", Convert.Unit.GLAT),
            is(new BigDecimal("21000000000000000000000000000")));
}