### Question:
GridAccountServiceImpl extends AbstractConveyorComponentService implements GridAccountService { @Override public void deleteGridAccount(final GridAccount gridAccount) throws ConveyorBusyException, ConveyorExecutionException { log.info("deleteGridAccount()"); if (gridAccount == null) { throw new IllegalArgumentException("null gridAccount"); } log.info("gridAccount:{}", gridAccount); try { getConveyorExecutorService().setBusyForAnOperation(); gridAccountDAO.delete(gridAccount); } catch (TransferDAOException e) { log.error("exception deleting", e); throw new ConveyorExecutionException("error deleting account", e); } finally { getConveyorExecutorService().setOperationCompleted(); } } GridAccountServiceImpl(); GridAccountDAO getGridAccountDAO(); void setGridAccountDAO(final GridAccountDAO gridAccountDAO); KeyStoreDAO getKeyStoreDAO(); void setKeyStoreDAO(final KeyStoreDAO keyStoreDAO); @Override KeyStore changePassPhraseWhenAlreadyValidated(final String passPhrase); @Override void rememberDefaultStorageResource(final String resourceName,
            final IRODSAccount irodsAccount); @Override GridAccount addOrUpdateGridAccountBasedOnIRODSAccount(
            final IRODSAccount irodsAccount); @Override GridAccount addOrUpdateGridAccountBasedOnIRODSAccount(
            final IRODSAccount irodsAccount, final AuthResponse authResponse); @Override void validatePassPhrase(final String passPhrase); @Override synchronized String getCachedPassPhrase(); @Override GridAccount findGridAccountByIRODSAccount(
            final IRODSAccount irodsAccount); @Override void deleteGridAccount(final GridAccount gridAccount); @Override List<GridAccount> findAll(); @Override synchronized IRODSAccount irodsAccountForGridAccount(
            final GridAccount gridAccount); @Override void deleteAllGridAccounts(); @Override synchronized void resetPassPhraseAndAccounts(); @Override boolean isPassPhraseStoredAlready(); static ClientServerNegotiationPolicy.SslNegotiationPolicy translateSslNegotiationToEnum(final String sslNegotiationPolicyString);  }### Answer:
@Test public void testDeleteGridAccount() throws Exception { String testUserName = "user1"; IRODSAccount irodsAccount = testingPropertiesHelper .buildIRODSAccountForIRODSUserFromTestPropertiesForGivenUser( testingProperties, testUserName, testUserName); String passPhrase = "ooogabooga"; gridAccountService.validatePassPhrase(passPhrase); GridAccount gridAccount = gridAccountService .addOrUpdateGridAccountBasedOnIRODSAccount(irodsAccount); gridAccountService.deleteGridAccount(gridAccount); GridAccount lookedUp = gridAccountService .findGridAccountByIRODSAccount(irodsAccount); Assert.assertNull("should have deleted", lookedUp); }