@Test
  public void injectionAccountAndContainerForGetHeadDeleteBlobIdV1Test() throws Exception {
    populateAccountService();
    // it does not matter what AID and CID are supplied when constructing blobId in v1.
    // expect unknown account and container for v1 blob IDs that went through request processing only.
    String blobId =
        new BlobId(BlobId.BLOB_ID_V1, BlobId.BlobIdType.NATIVE, ClusterMap.UNKNOWN_DATACENTER_ID, refAccount.getId(),
            refContainer.getId(), clusterMap.getWritablePartitionIds(MockClusterMap.DEFAULT_PARTITION_CLASS).get(0),
            false, BlobId.BlobDataType.DATACHUNK).getID();
    verifyAccountAndContainerFromBlobId(blobId, InMemAccountService.UNKNOWN_ACCOUNT, Container.UNKNOWN_CONTAINER,
        RestServiceErrorCode.NotFound);

    // test response path account injection for V1 blob IDs
    // public blob with service ID that does not correspond to a valid account
    verifyResponsePathAccountAndContainerInjection(refAccount.getName() + "extra", false,
        InMemAccountService.UNKNOWN_ACCOUNT, Container.DEFAULT_PUBLIC_CONTAINER);
    // private blob with service ID that does not correspond to a valid account
    verifyResponsePathAccountAndContainerInjection(refAccount.getName() + "extra", true,
        InMemAccountService.UNKNOWN_ACCOUNT, Container.DEFAULT_PRIVATE_CONTAINER);
    // public blob with service ID that corresponds to a valid account
    verifyResponsePathAccountAndContainerInjection(refAccount.getName(), false, refAccount, refDefaultPublicContainer);
    // private blob with service ID that corresponds to a valid account
    verifyResponsePathAccountAndContainerInjection(refAccount.getName(), true, refAccount, refDefaultPrivateContainer);
  }
Tests injecting target {@link Account} and {@link Container} for GET/HEAD/DELETE blobId string in {@link BlobId#BLOB_ID_V1}.
The {@link AccountService} is prepopulated with a reference account and {@link InMemAccountService#UNKNOWN_ACCOUNT}. The expected
behavior should be:
<pre>
  AId in blobId    CId in blobId     expected Error      injected account      injected container
   UNKNOWN           UNKNOWN          NotFound            UNKNOWN               UNKNOWN            This can succeed if the blob exists in backend.
</pre>
@throws Exception
ambry-frontend/src/test/java/com/github/ambry/frontend/FrontendRestRequestServiceTest.java