ScopeNode implements Scope { @SuppressWarnings({"unused", "For the sake of completeness of the API."}) Collection<ScopeNode> getChildrenScopes() { return childrenScopes.values(); } ScopeNode(Object name); @Override Object getName(); @Override boolean equals(Object o); @Override int hashCode(); @Override ScopeNode getParentScope(); @SuppressWarnings({"unused", "used by generated code"}) @Override ScopeNode getParentScope(Class<A> scopeAnnotationClass); @SuppressWarnings({"unused", "used by generated code"}) @Override ScopeNode getRootScope(); @Override Scope supportScopeAnnotation(Class<? extends Annotation> scopeAnnotationClass); @Override boolean isScopeAnnotationSupported(Class<? extends Annotation> scopeAnnotationClass);  }
@Test public void testGetChildrenScopes_shouldReturnEmptyList_whenHasNoChildren() { ScopeNode parentScope = new ScopeImpl("root"); boolean hasNoChildren = parentScope.getChildrenScopes().isEmpty(); assertThat(hasNoChildren, is(true)); }