@Test
public void textMultipleBundles() {

    TestResourceBundle bundle1 = new TestResourceBundle();
    TestResourceBundle bundle2 = new TestResourceBundle();
    TestResourceBundle bundle3 = new TestResourceBundle();
    bundle1.getResourcesMap().put("A", "1");
    bundle2.getResourcesMap().put("A", "2");
    bundle3.getResourcesMap().put("A", "3");
    bundle2.getResourcesMap().put("B", "2");
    bundle3.getResourcesMap().put("B", "3");
    Resources resources = new Resources(bundle1, bundle2, bundle3);
    assertThat(resources.text("A", new Object[0])).isEqualTo("1");
    assertThat(resources.text("B", new Object[0])).isEqualTo("2");
}