### Question:
RequestProcessorCache { public Location getLocationFor( Long workspaceId, Path node ) { WorkspaceCache cache = workspaceCaches.get(workspaceId); return cache != null ? cache.getLocationFor(node) : 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 shouldNotFindLocationForPathWhenEmpty() { assertThat(cache.getLocationFor(workspaceId, location.getPath()), is(nullValue())); }
@Test public void shouldNotFindLocationForNullPath() { assertThat(cache.getLocationFor(workspaceId, null), is(nullValue())); }