### Question:
GrubComponent implements ResourceComponent, ConfigurationFacet { public Configuration loadResourceConfiguration() throws Exception { Configuration pluginConfiguration = resourceContext.getPluginConfiguration(); return loadResourceConfiguration(pluginConfiguration); }  void start(ResourceContext resourceContext); void stop(); AvailabilityType getAvailability(); Configuration loadResourceConfiguration(); Configuration loadResourceConfiguration(Configuration pluginConfiguration); void updateResourceConfiguration(ConfigurationUpdateReport report);  }### Answer:
@Test(enabled = false) public void loadResourceConfiguration() throws Exception { Configuration configuration; try { configuration = component.loadResourceConfiguration(pluginConfiguration); } catch (UnsatisfiedLinkError ule) { return; } assert configuration != null : "Null configuration returned from load call"; Collection<Property> allProperties = configuration.getProperties(); assert allProperties.size() == 2 : "Incorrect number of properties found. Expected: 2, Found: " + allProperties.size(); Iterator<Property> propertyIterator = allProperties.iterator(); PropertyMap generalProperties = (PropertyMap) propertyIterator.next(); assert generalProperties != null : "General properties map was null"; Map<String, Property> map = generalProperties.getMap(); for (Property property : map.values()) { PropertySimple propertySimple = (PropertySimple) property; log.info(property.getName() + ": " + propertySimple.getStringValue()); } PropertyList entryList = (PropertyList) propertyIterator.next(); for (Property property : entryList.getList()) { PropertyMap entry = (PropertyMap) property; Property titleProperty = entry.get("title"); Property rootProperty = entry.get("root"); Property kernelProperty = entry.get("kernel"); Property initrdProperty = entry.get("initrd"); assert titleProperty != null : "Title was null in entry"; assert rootProperty != null : "Root was null in entry"; assert kernelProperty != null : "Kernel was null in entry"; assert initrdProperty != null : "Initrd was null in entry"; log.info("Title: " + ((PropertySimple) titleProperty).getStringValue()); log.info("Root: " + ((PropertySimple) rootProperty).getStringValue()); log.info("Kernel: " + ((PropertySimple) kernelProperty).getStringValue()); log.info("Initrd: " + ((PropertySimple) initrdProperty).getStringValue()); } }