LabelBuilder { public String label(Property property) { return property.getValue().hasDefined(HAL_LABEL) ? label(property.getValue().get(HAL_LABEL).asString()) : label(property.getName()); }  String label(Property property); String label(String name); String enumeration(Iterable<String> names, String conjunction);  }
@Test public void specials() { assertEquals("Check Valid Connection SQL", builder.label("check-valid-connection-sql")); assertEquals("Connection URL", builder.label("connection-url")); assertEquals("JNDI Name", builder.label("jndi-name")); assertEquals("URL Selector Strategy Class Name", builder.label("url-selector-strategy-class-name")); assertEquals("Modify WSDL Address", builder.label("modify-wsdl-address")); assertEquals("WSDL Port", builder.label("wsdl-port")); }
@Test public void label() throws Exception { assertEquals("Profile Name", builder.label("Profile Name")); }