@Test
public void parseCoin() {

    assertEquals(13370000, BTC.value("0.1337").value);
    assertEquals(13370000, BTC.value(".1337").value);
    // Bitcoin family
    assertEquals(133700000, BTC.value("1.337").value);
    assertEquals(133700, BTC.value("0.001337").value);
    // Peercoin family
    assertEquals(1337000, PPC.value("1.337").value);
    assertEquals(1337, PPC.value("0.001337").value);
    // NuBits family
    assertEquals(13370, NBT.value("1.337").value);
    assertEquals(13, NBT.value("0.0013").value);
}