### Question:
DefaultScopePathGenerator implements ScopePathGenerator { @Override public String createName(final ScopePath scopePath) { DefaultScopePathGeneratorValidator.validateScopePath(scopePath); final StringBuffer sb = new StringBuffer(); final Scope classScope = scopePath.findScopeByName(ClassScopeDescriptor.NAME); final String className = classScope.getProperty(ClassScopeDescriptor.PROP_CLASS_NAME); sb.append(className); return sb.toString(); } DefaultScopePathGenerator(final String scopeSeparator); @Override String createName(final ScopePath scopePath); @Override String getPathFromScopePath(final ScopePath scopePath); @Override String buildScopeWithProperty(final String scopeName, final Map<String, String> properties); @Override Collection<ScopePath> createScopePaths(
		final Collection<String> paths,
		final String scopeName,
		final Map<String, String> properties); static final String PATH_PROPERTY_SEPARATOR; }### Answer:
@Test public void testCreateName() { final InternalScopePathBuilderFactory factory = new InternalScopePathBuilderFactory(); final ScopePathBuilder builder = factory.createBuilder(); final Map<String, String> tmpProperties = new TreeMap<String, String>(); tmpProperties.put("className", "TestConfiguration"); builder.append(ClassScopeDescriptor.NAME, tmpProperties); builder.append(CodeDefaultScopeDescriptor.NAME); final String result = gen.createName(builder.create()); Assert.assertTrue(result.equals("TestConfiguration")); }