public void testDestroyTokenBeforeRPC() throws AccumuloException, DestroyFailedException, AccumuloSecurityException, TableNotFoundException {
PasswordToken token = new PasswordToken(password);
Connector userConnector = getConnector().getInstance().getConnector(username, token);
Scanner scanner = userConnector.createScanner(MetadataTable.NAME, Authorizations.EMPTY);
assertFalse(token.isDestroyed());
token.destroy();
assertTrue(token.isDestroyed());
try {
Iterator<Entry<Key,Value>> iter = scanner.iterator();
while (iter.hasNext())
fail();