### Question:
RequestProcessorCache { public LinkedList<Location> getAllChildren( Long workspaceId, Path parent ) { WorkspaceCache cache = workspaceCaches.get(workspaceId); return cache != null ? cache.getAllChildren(parent) : null; } RequestProcessorCache( PathFactory pathFactory ); Location getLocationFor( Long workspaceId,
                                    Path node ); void addNewNode( Long workspaceId,
                            Location location ); void clear( Long workspaceId ); LinkedList<Location> getAllChildren( Long workspaceId,
                                                Path parent ); void setAllChildren( Long workspaceId,
                                Path parent,
                                LinkedList<Location> children ); boolean moveNode( Long workspaceId,
                             Location oldLocation,
                             int oldIndexInParent,
                             Location newLocation ); boolean removeBranch( Long workspaceId,
                                 Iterable<Location> locations ); String getString( NamespaceRegistry namespaces ); @Override String toString();  }### Answer:
@Test public void shouldNotFindChildrenForPathWhenEmpty() { assertThat(cache.getAllChildren(workspaceId, location.getPath()), is(nullValue())); }
@Test public void shouldNotFindChildrenForNullPath() { assertThat(cache.getAllChildren(workspaceId, null), is(nullValue())); }