@Test
public void text() {

    TestResourceBundle bundle = new TestResourceBundle();
    bundle.getResourcesMap().put("test.key", "{0,number,#} {1,number} {3} '{4}' {5}");
    Resources resources = new Resources(bundle);
    assertThat(resources.text("test.key", 1000, 1000, 1000, null)).isEqualTo("1000 1,000 null {4} {5}");
}