### Question:
ScopePathImpl implements ScopePath { @Override public Scope findScopeByName(final String name) { for (final Scope scope : scopes) { if (scope.getName().equals(name)) { return scope; } } return null; } ScopePathImpl(final List<Scope> scopes); @Override List<Scope> getScopes(); @Override Scope getRootScope(); @Override Scope getLastScope(); @Override ScopePath getParentPath(); @Override Scope findScopeByName(final String name); @Override boolean startsPathWith(final ScopePath other); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }### Answer:
@Test public void testFindScopeByName() { final ScopePath testScopePath = createTestScopePath(); Assert.assertEquals("value", testScopePath.findScopeByName("test").getProperty("test")); }