### Question:
SizeHelper { @Nonnull public String getAsMB (final long nSize) { return _format (nSize / CGlobal.BYTES_PER_MEGABYTE) + MB_SUFFIX; } SizeHelper(@Nonnull final Locale aDisplayLocale);  SizeHelper(@Nonnull final DecimalFormatSymbols aDFS); @Nonnull String getAsKB(final long nSize); @Nonnull String getAsKB(final long nSize, @Nonnegative final int nDecimals); @Nonnull String getAsMB(final long nSize); @Nonnull String getAsMB(final long nSize, @Nonnegative final int nDecimals); @Nonnull String getAsGB(final long nSize); @Nonnull String getAsGB(final long nSize, @Nonnegative final int nDecimals); @Nonnull String getAsTB(final long nSize); @Nonnull String getAsTB(final long nSize, @Nonnegative final int nDecimals); @Nonnull String getAsPB(final long nSize); @Nonnull String getAsPB(final long nSize, @Nonnegative final int nDecimals); @Nonnull String getAsMatching(@Nonnull final BigInteger aSize); @Nonnull String getAsMatching(@Nonnull final BigInteger aSize, @Nonnegative final int nDecimals); @Nonnull String getAsMatching(@Nonnull final BigDecimal aSize); @Nonnull String getAsMatching(@Nonnull final BigDecimal aSize, @Nonnegative final int nDecimals); @Nonnull String getAsMatching(final long nSize); @Nonnull String getAsMatching(final long nSize, @Nonnegative final int nDecimals); @Override String toString(); @Nonnull static SizeHelper getSizeHelperOfLocale(@Nonnull final Locale aDisplayLocale); static final String B_SUFFIX; static final String KB_SUFFIX; static final String MB_SUFFIX; static final String GB_SUFFIX; static final String TB_SUFFIX; static final String PB_SUFFIX; }### Answer:
@Test public void testGetAsMB () { final SizeHelper aSH = SizeHelper.getSizeHelperOfLocale (Locale.ENGLISH); assertEquals ("0MB", aSH.getAsMB (0)); assertEquals ("5MB", aSH.getAsMB (5 * CGlobal.BYTES_PER_MEGABYTE)); assertEquals ("2MB", aSH.getAsMB (2 * CGlobal.BYTES_PER_MEGABYTE)); assertEquals ("1MB", aSH.getAsMB (2 * CGlobal.BYTES_PER_MEGABYTE - 1)); assertEquals ("1024MB", aSH.getAsMB (1 * CGlobal.BYTES_PER_GIGABYTE)); assertEquals ("0.00MB", aSH.getAsMB (0, 2)); assertEquals ("5MB", aSH.getAsMB (5 * CGlobal.BYTES_PER_MEGABYTE, 0)); assertEquals ("5.0MB", aSH.getAsMB (5 * CGlobal.BYTES_PER_MEGABYTE, 1)); assertEquals ("5.00MB", aSH.getAsMB (5 * CGlobal.BYTES_PER_MEGABYTE, 2)); assertEquals ("5.000MB", aSH.getAsMB (5 * CGlobal.BYTES_PER_MEGABYTE, 3)); assertEquals ("5.0000MB", aSH.getAsMB (5 * CGlobal.BYTES_PER_MEGABYTE, 4)); assertEquals ("2.00MB", aSH.getAsMB (2 * CGlobal.BYTES_PER_MEGABYTE, 2)); assertEquals ("1.99MB", aSH.getAsMB (2 * CGlobal.BYTES_PER_MEGABYTE - 10 * 1024, 2)); assertEquals ("1024.00MB", aSH.getAsMB (1 * CGlobal.BYTES_PER_GIGABYTE, 2)); }