### Question:
GridAccountServiceImpl extends AbstractConveyorComponentService implements GridAccountService { @Override public KeyStore changePassPhraseWhenAlreadyValidated(final String passPhrase) throws ConveyorBusyException, PassPhraseInvalidException, ConveyorExecutionException { log.info("storePassPhrase()"); if (passPhrase == null || passPhrase.isEmpty()) { throw new IllegalArgumentException("null passPhrase"); } synchronized (this) { if (!isValidated()) { throw new PassPhraseInvalidException( "The current pass phrase is not validated, cannot replace"); } try { getConveyorExecutorService().setBusyForAnOperation(); return replacePassPhrase(passPhrase); } 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(expected = IllegalArgumentException.class) public void testStorePassPhraseNull() throws Exception { gridAccountService.changePassPhraseWhenAlreadyValidated(null); }
@Test(expected = IllegalArgumentException.class) public void testStorePassPhraseBlank() throws Exception { gridAccountService.changePassPhraseWhenAlreadyValidated(""); }
@Test(expected = IllegalArgumentException.class) public void testReplacePassPhraseNull() throws Exception { GridAccountService gridAccountServiceTest = new GridAccountServiceImpl(); gridAccountServiceTest.changePassPhraseWhenAlreadyValidated(null); }