@Test
  public void testUpdateDisabled() throws Exception {

    mySqlConfigProps.setProperty(UPDATE_DISABLED, "true");
    mySqlAccountService = getAccountService();

    // Verify account update is disabled
    Account testAccount = new AccountBuilder((short) 1, "testAccount1", Account.AccountStatus.ACTIVE).build();
    try {
      mySqlAccountService.updateAccounts(Collections.singletonList(testAccount));
      fail("Update accounts should be disabled");
    } catch (AccountServiceException e) {
      assertEquals("Mismatch in error code", AccountServiceErrorCode.UpdateDisabled, e.getErrorCode());
    }
  }
Tests disabling account updates by setting {@link MySqlAccountServiceConfig#UPDATE_DISABLED} to true.
ambry-account/src/test/java/com/github/ambry/account/MySqlAccountServiceTest.java