P2RestoreBlobStrategy extends BaseRestoreBlobStrategy<P2RestoreBlobData> { @Override protected Query getComponentQuery(final P2RestoreBlobData data) throws IOException { P2RestoreFacet facet = getRestoreFacet(data); RestoreBlobData blobData = data.getBlobData(); return facet.getComponentQuery(blobData.getBlob(), blobData.getBlobName(), blobData.getBlobStoreName()); } @Inject  P2RestoreBlobStrategy(final NodeAccess nodeAccess,
                               final RepositoryManager repositoryManager,
                               final BlobStoreManager blobStoreManager,
                               final DryRunPrefix dryRunPrefix);   }
@Test public void testComponentQuery() throws IOException { restoreBlobStrategy.getComponentQuery(p2RestoreBlobData); verify(p2RestoreFacet, times(1)).getComponentQuery(any(), any(), any()); }