EtherFormatter { public static String formatWeiAsEther(long wei) { double ether = (double) wei / 1000000000000000000L; return String.format(Locale.getDefault(), "%.2f" + "ETH", ether); }  static String formatWeiAsEther(long wei);  }
@Test public void testFormatEther() throws Exception { assertThat(EtherFormatter.formatWeiAsEther(2000000000000000000L), is("2.00ETH")); }
@Test public void testFormatEtherFraction() throws Exception { assertThat(EtherFormatter.formatWeiAsEther(2110000000000000000L), is("2.11ETH")); }
@Test public void testFormatEtherFraction2() throws Exception { assertThat(EtherFormatter.formatWeiAsEther(2119000000000000000L), is("2.12ETH")); }