private void buildAccountWithMissingFieldsAndFail(String name, AccountStatus status,
      Class<? extends Exception> exceptionClass) throws Exception {
    AccountBuilder accountBuilder = new AccountBuilder(refAccountId, name, status);
    TestUtils.assertException(exceptionClass, accountBuilder::build, null);
  }
Asserts that build an {@link Account} will fail because of missing field.
@param name The name for the {@link Account} to build.
@param status The status for the {@link Account} to build.
@param exceptionClass The class of expected exception.
ambry-api/src/test/java/com/github/ambry/account/AccountContainerTest.java