@Test
public void test_getBundleParameters_valid_url() {

    BlueI18n.BundleParams bundleParameters = BlueI18n.getBundleParameters("/blue/rest/i18n/pluginx/1.0.0/pluginx.bundle");
    Assert.assertNotNull(bundleParameters);
    Assert.assertEquals("pluginx", bundleParameters.pluginName);
    Assert.assertEquals("1.0.0", bundleParameters.pluginVersion);
    Assert.assertEquals("pluginx.bundle", bundleParameters.bundleName);
    Assert.assertNull(bundleParameters.language);
    Assert.assertNull(bundleParameters.country);
    Assert.assertNull(bundleParameters.variant);
    Assert.assertNull(bundleParameters.getLocale());
    bundleParameters = BlueI18n.getBundleParameters("/blue/rest/i18n/pluginx/1.0.0/pluginx.bundle/en");
    Assert.assertNotNull(bundleParameters);
    Assert.assertEquals("pluginx", bundleParameters.pluginName);
    Assert.assertEquals("1.0.0", bundleParameters.pluginVersion);
    Assert.assertEquals("pluginx.bundle", bundleParameters.bundleName);
    Assert.assertEquals("en", bundleParameters.language);
    Assert.assertNull(bundleParameters.country);
    Assert.assertNull(bundleParameters.variant);
    Assert.assertNotNull(bundleParameters.getLocale());
    Assert.assertEquals("en", bundleParameters.getLocale().toString());
}