@Test
  public void namedBlobTest() throws Exception {

    // Create an account and then create two containers, first container disables named blob and second container
    // set it as optional.
    Account refAccount = ACCOUNT_SERVICE.createAndAddRandomAccount();
    Container namedBlobDisableContainer =
        new ContainerBuilder((short) 10, "disabled", Container.ContainerStatus.ACTIVE, "",
            refAccount.getId()).setNamedBlobMode(Container.NamedBlobMode.DISABLED).build();
    Container namedBlobOptionalContainer =
        new ContainerBuilder((short) 11, "optional", Container.ContainerStatus.ACTIVE, "",
            refAccount.getId()).setNamedBlobMode(Container.NamedBlobMode.OPTIONAL).build();
    ACCOUNT_SERVICE.updateContainers(refAccount.getName(),
        Arrays.asList(namedBlobDisableContainer, namedBlobOptionalContainer));

    // Test first container, it returns error
    doNamedBlobPutOnDisabledContainer(refAccount, namedBlobDisableContainer);
    // Test second container, test get and delete
    doNamedBlobPutGetHeadDeleteTest(refAccount, namedBlobOptionalContainer);
    // Upload lots of blobs to second container, and test list named blob
    doNamedBlobPutListDeleteTest(refAccount, namedBlobOptionalContainer);
  }
Tests for the account/container get/update API.
ambry-frontend/src/integration-test/java/com/github/ambry/frontend/FrontendIntegrationTest.java