ComponentPathBrowseNodeGenerator extends AssetPathBrowseNodeGenerator { @Override public List<BrowsePaths> computeComponentPaths(final Asset asset, final Component component) { List<BrowsePaths> assetPaths = computeAssetPaths(asset, component); return assetPaths.subList(0, assetPaths.size() - 1); }  @Override List<BrowsePaths> computeComponentPaths(final Asset asset, final Component component);  }
@Test public void computeComponentPathWithComponent() { Component component = createComponent("component", "group", "1.0.0"); Asset asset = createAsset("asset/path/foo"); List<BrowsePaths> paths = generator.computeComponentPaths(asset, component); assertPaths(asList("asset", "path"), paths, true); }