### Question:
FormattingUtils { public static String formatPrice(Price price, MonetaryFormat fiatPriceFormat, boolean appendCurrencyCode) { if (price != null) { Monetary monetary = price.getMonetary(); if (monetary instanceof Fiat) return formatFiat((Fiat) monetary, fiatPriceFormat, appendCurrencyCode); else return formatAltcoin((Altcoin) monetary, appendCurrencyCode); } else { return Res.get("shared.na"); } }  static String formatCoinWithCode(long value, MonetaryFormat coinFormat); static String formatCoinWithCode(Coin coin, MonetaryFormat coinFormat); static String formatCoin(long value, MonetaryFormat coinFormat); static String formatCoin(Coin coin,
                                    int decimalPlaces,
                                    boolean decimalAligned,
                                    int maxNumberOfDigits,
                                    MonetaryFormat coinFormat); static String formatFiat(Fiat fiat, MonetaryFormat format, boolean appendCurrencyCode); static String formatAltcoinVolume(Altcoin altcoin, boolean appendCurrencyCode); static String formatPrice(Price price, MonetaryFormat fiatPriceFormat, boolean appendCurrencyCode); static String formatPrice(Price price, boolean appendCurrencyCode); static String formatPrice(Price price); static String formatMarketPrice(double price, String currencyCode); static String formatRoundedDoubleWithPrecision(double value, int precision); static String formatDateTime(Date date, boolean useLocaleAndLocalTimezone); static String formatDateTime(Date date, DateFormat dateFormatter, DateFormat timeFormatter); static String getDateFromBlockHeight(long blockHeight); static String formatToPercentWithSymbol(double value); static String formatToRoundedPercentWithSymbol(double value); static String formatPercentagePrice(double value); static String formatToPercent(double value); static String formatToPercent(double value, DecimalFormat decimalFormat); static String formatDurationAsWords(long durationMillis); static String formatDurationAsWords(long durationMillis, boolean showSeconds, boolean showZeroValues); static String formatBytes(long bytes); @NotNull static String fillUpPlacesWithEmptyStrings(String formattedNumber, @SuppressWarnings("unused") int maxNumberOfDigits); static final String BTC_FORMATTER_KEY; final static String RANGE_SEPARATOR; }### Answer:
@Test public void testFormatPrice() { assertEquals("100.0000", FormattingUtils.formatPrice(make(usdPrice))); assertEquals("7098.4700", FormattingUtils.formatPrice(make(usdPrice.but(with(priceString, "7098.4700"))))); }