### Question:
Name { public String getScopedName() { StringBuilder sb = new StringBuilder(); if (parent != null) { sb.append(parent.getLeaf()); sb.append("+"); } sb.append(leaf); return sb.toString(); } private  Name(final Name parent, final String leaf); static Name of(final String... parts); static Name of(final Class<?> type); Name getParent(); String getLeaf(); Name child(final String name); Name decorated(final String decorator); String getFullyQualifiedName(); String getScopedName(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test(dataProvider = "scopedNames") public void shouldPrintScopedName(final Name name, final String expected) throws Exception { assertThat(name.getScopedName()).isEqualTo(expected); }