### Question:
PluginModuleRestful implements Restful { public String getApplication() { return application; }  void addLibrary(final String name, final PrefixedLibrary library); Map<String, PrefixedLibrary> getIncludes(); void setIncludes(final Map<String, PrefixedLibrary> includes); String getApplication(); void setApplication(final String application); @Override String toString(); static final String DEFAULT_APP_NAME; }### Answer:
@Test public void testGetApplication() throws Exception { PluginModuleRestful restful = new PluginModuleRestful(); final PluginModuleRestful.PrefixedLibrary prefixedLibrary = new PluginModuleRestful.PrefixedLibrary("components"); prefixedLibrary.addLibrary(new PluginModuleRestful.Library("html5shiv", "excanvas.js", "IE <= 8")); prefixedLibrary.addLibrary(new PluginModuleRestful.Library("ExplorerCanvas", "html5shiv-printshiv.js", "IE <= 8")); restful.addLibrary("libraries", prefixedLibrary); final PluginModuleRestful.PrefixedLibrary hippoLibrary = new PluginModuleRestful.PrefixedLibrary(); hippoLibrary.addLibrary(new PluginModuleRestful.Library("components/hippo-plugins", "dist/js/main.js")); restful.addLibrary("hippo-plugins", hippoLibrary); final ObjectMapper mapper = new ObjectMapper(); final String json = mapper.writeValueAsString(restful); log.info("json {}", json); restful = mapper.readValue(json, PluginModuleRestful.class); log.info("json {}", restful); final Map<String, PluginModuleRestful.PrefixedLibrary> includes = restful.getIncludes(); assertEquals("Expected 2 libraries", 2, includes.size()); }