### Question:
WebHdfsServiceModelGenerator extends HdfsUIServiceModelGenerator { @Override public ServiceModelGeneratorHandleResponse handles(ApiService service, ApiServiceConfig serviceConfig, ApiRole role, ApiConfigList roleConfig) { final ServiceModelGeneratorHandleResponse response = super.handles(service, serviceConfig, role, roleConfig); if (response.handled()) { final String webHdfsEnabled = getServiceConfigValue(serviceConfig, WEBHDFS_ENABLED); if (webHdfsEnabled == null) { response.addConfigurationIssue("Missing configuration: " + WEBHDFS_ENABLED); } else if (!Boolean.parseBoolean(webHdfsEnabled)) { response.addConfigurationIssue("Invalid configuration: " + WEBHDFS_ENABLED + ". Expected=true; Found=" + webHdfsEnabled); } } return response; }  @Override String getService(); @Override ServiceModel.Type getModelType(); @Override ServiceModelGeneratorHandleResponse handles(ApiService service, ApiServiceConfig serviceConfig, ApiRole role, ApiConfigList roleConfig); @Override ServiceModel generateService(ApiService service, ApiServiceConfig serviceConfig, ApiRole role, ApiConfigList roleConfig);  }### Answer:
@Test @Override public void testHandles() { final Map<String, String> serviceConfig = new HashMap<>(); serviceConfig.put(WebHdfsServiceModelGenerator.WEBHDFS_ENABLED, "true"); assertTrue(doTestHandles(newGenerator(), getServiceType(), serviceConfig, getRoleType(), Collections.emptyMap())); }