### Question:
OSGIResourceBundle extends PropertyResourceBundle { public ResourceBundle getParent() { return parent; } OSGIResourceBundle( String defaultName, URL propertyFileUrl );  OSGIResourceBundle( String defaultName, ResourceBundle parent, URL propertyFileUrl ); String getDefaultName(); ResourceBundle getParent();  }### Answer:
@Test public void testParent() throws IOException { String parentPath = "i18n/resource/OSGIResourceBundleTest.properties"; OSGIResourceBundle osgiResourceBundle = new OSGIResourceBundle( parentPath, getClass().getClassLoader().getResource( parentPath ) ); String childPath = "i18n/resource/OSGIResourceBundleTestChild.properties"; OSGIResourceBundle osgiResourceBundleChild = new OSGIResourceBundle( childPath, osgiResourceBundle, getClass().getClassLoader().getResource( childPath ) ); assertEquals( osgiResourceBundle, osgiResourceBundleChild.getParent() ); assertEquals( "testValueChild", osgiResourceBundleChild.getString( "key" ) ); assertEquals( "testValueParent", osgiResourceBundleChild.getString( "parentKey" ) ); }