### Question:
TemplateVariables { static String getPropertyNameFromDefault(String defaultPropertyName) { final int defaultIndex = defaultPropertyName.indexOf(DEFAULT); if (defaultIndex > 0) { return defaultPropertyName.substring(0, defaultIndex); } return defaultPropertyName; } TemplateVariables();   }### Answer:
@Test public void testGetPropertyNameFromDefault() { assertEquals("the.property", TemplateVariables.getPropertyNameFromDefault("the.property.default")); assertEquals("the.property.scale", TemplateVariables.getPropertyNameFromDefault("the.property.scale")); assertEquals("the.property", TemplateVariables.getPropertyNameFromDefault("the.property")); }