### Question:
SummarizerUtils { public static String amount(CurrencyAmount currencyAmount) { return amount(currencyAmount.getCurrency(), currencyAmount.getAmount()); } private  SummarizerUtils(); static String date(LocalDate date); static String dateRange(LocalDate start, LocalDate end); static String datePeriod(LocalDate start, LocalDate end); static String amount(CurrencyAmount currencyAmount); static String amount(Currency currency, double value); static String value(double value); static String percent(double value); static String payReceive(PayReceive payReceive); static String fx(CurrencyAmount base, CurrencyAmount counter); static PortfolioItemSummary summary(Position position, ProductType type, String description, Currency... currencies); static PortfolioItemSummary summary(Trade trade, ProductType type, String description, Currency... currencies);  }### Answer:
@Test public void test_amount() { assertThat(SummarizerUtils.amount(amount(GBP, 12.34))).isEqualTo("GBP 12.34"); assertThat(SummarizerUtils.amount(GBP, 12.34)).isEqualTo("GBP 12.34"); assertThat(SummarizerUtils.amount(GBP, 123)).isEqualTo("GBP 123"); assertThat(SummarizerUtils.amount(GBP, 1230)).isEqualTo("GBP 1,230"); assertThat(SummarizerUtils.amount(GBP, 12300)).isEqualTo("GBP 12,300"); assertThat(SummarizerUtils.amount(GBP, 123000)).isEqualTo("GBP 123k"); assertThat(SummarizerUtils.amount(GBP, 1230000)).isEqualTo("GBP 1.23mm"); }