*/
public void getValues() throws Exception {
ResourceBundle bundle
= ResourceBundle.getBundle("util.I18nTest", Locale.GERMANY);
ResourceBundleAsMap rbm = new ResourceBundleAsMap(bundle);
SegmentedMap segmap = new SegmentedMap(rbm);
// oss.an has its own PKW resource
assertTrue(segmap.get("danet.oss.an.poolPKW").equals("DA-AN 964"));
// oss.sm uses the PKW resource of oss
assertTrue(segmap.get("danet.oss.sm.poolPKW").equals("DA-OS 137"));
// bss.bs uses the PKW resource of danet
assertTrue(segmap.get("danet.bss.bs.poolPKW").equals("DA-NET 123"));
// everybody uses danet
assertTrue(segmap.get("danet.oss.an.danet").equals("Danet GmbH"));
boolean notFound = false;
Object value = segmap.get("telekom.poolPKW");
if ( (value == null)
&& !segmap.containsKey("telekom.poolPKW") ) {
notFound = true;
}
assertTrue(notFound);
}