### Question:
ReplicationStatusManagerImpl implements ReplicationStatusManager { @Override public Resource getReplicationStatusResource(String path, ResourceResolver resourceResolver) { final Page page = resourceResolver.adaptTo(PageManager.class).getContainingPage(path); final Asset asset = DamUtil.resolveToAsset(resourceResolver.getResource(path)); Resource resource; String type; if (page != null) { type = "Page"; resource = page.getContentResource(); } else if (asset != null) { type = "Asset"; Resource assetResource = resourceResolver.getResource(asset.getPath()); resource = assetResource.getChild(JcrConstants.JCR_CONTENT); } else { type = "Resource"; resource = resourceResolver.getResource(path); } log.trace("{}'s resource that tracks replication status is {}", type, resource.getPath()); return resource; }  @Override Resource getReplicationStatusResource(String path, ResourceResolver resourceResolver); final void setReplicationStatus(final ResourceResolver resourceResolver,
                                           final String replicatedBy,
                                           final Calendar replicatedAt,
                                           final Status status,
                                           final String... paths); @SuppressWarnings("squid:S3776") final void setReplicationStatus(final ResourceResolver resourceResolver,
                                           final String replicatedBy,
                                           final Calendar replicatedAt,
                                           final Status status,
                                           final Resource... resources); final void clearReplicationStatus(final ResourceResolver resourceResolver,
                                       final Resource... resources); static final String DEFAULT_REPLICATED_BY; }### Answer:
@Test public void testGetReplicationStatusResource_Page() { assertSamePath(pageContentResource, replicationStatusManager.getReplicationStatusResource(PAGE_PATH, resourceResolver)); }
@Test public void testGetReplicationStatusResource_Asset() { assertSamePath(assetContentResource, replicationStatusManager.getReplicationStatusResource(ASSET_PATH, resourceResolver)); }
@Test public void testGetReplicationStatusResource_Resource() { assertSamePath(unreplicatedResource, replicationStatusManager.getReplicationStatusResource(UNREPLICATED_PATH, resourceResolver)); }