OrientPyPiFacetImpl extends FacetSupport implements PyPiFacet { @Override @Nullable public Asset put(final String path, final AssetBlob assetBlob) throws IOException { if (isRootIndexPath(path)) { log.info("Not repairing root index"); return null; } else if (isIndexPath(path)) { return putIndex(path, assetBlob); } else { return putPackage(path, assetBlob); } } @Inject  OrientPyPiFacetImpl(final AssetEntityAdapter assetEntityAdapter); @Override boolean assetExists(final String name); @Override @Nullable Asset put(final String path, final AssetBlob assetBlob); @Override Asset putPackage(final String path, final AssetBlob assetBlob); @Override Asset putIndex(final String path, final AssetBlob assetBlob);  }
@Test public void testPutRootIndex() throws Exception { underTest.put(INDEX_PATH_PREFIX, assetBlob); verifyZeroInteractions(assetBlob, tx, repository); }