    @Test
    public void javaCurrencyApiTest() {

        String formatted = CurrencyUtil.format(new Locale("SV"), Currency.getInstance("SEK"), 3000000.5d);

        Assert.assertEquals("SEK 3 000 000,50", formatted); //not white spaces, but the \x{A0} character (no-break space)
    }