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