Memory { public static long gb(final double gigabytes) { return (long) gigabytes * 1024 * 1024 * 1024; } private  Memory(); static long gb(final double gigabytes); static long mb(final double megabytes); static long kb(final double kilobytes); static long toKb(final long bytes); static int toMb(final long bytes);  }
@Test public void testGb() { assertEquals( Memory.kb( Long.SIZE ), (long) 64 * 1024 ); }