BrokerDelegationTokenBinding extends AbstractDelegationTokenBinding { @Override public DelegationTokenIdentifier createEmptyIdentifier() { return new BrokerTokenIdentifier(); } BrokerDelegationTokenBinding(); @Override AccessTokenProvider deployUnbonded(); @Override AccessTokenProvider bindToTokenIdentifier(DelegationTokenIdentifier retrievedIdentifier); @Override DelegationTokenIdentifier createTokenIdentifier(); @Override DelegationTokenIdentifier createTokenIdentifier(Text renewer); @Override DelegationTokenIdentifier createEmptyIdentifier();  }
@Test public void testCreateEmptyIdentifier() { BrokerDelegationTokenBinding binding = new BrokerDelegationTokenBinding(); try { BrokerTokenIdentifier identifier = (BrokerTokenIdentifier) binding.createTokenIdentifier(); } catch (IOException e) { fail(); } }