### Question:
OzoneDelegationTokenSecretManager extends OzoneSecretManager<OzoneTokenIdentifier> { public Token<OzoneTokenIdentifier> createToken(Text owner, Text renewer, Text realUser) throws IOException { OzoneTokenIdentifier identifier = createIdentifier(owner, renewer, realUser); updateIdentifierDetails(identifier); byte[] password = createPassword(identifier.getBytes(), getCurrentKey().getPrivateKey()); long expiryTime = identifier.getIssueDate() + getTokenRenewInterval(); if (!isRatisEnabled) { addToTokenStore(identifier, password, expiryTime); } Token<OzoneTokenIdentifier> token = new Token<>(identifier.getBytes(), password, identifier.getKind(), getService()); if (LOG.isDebugEnabled()) { LOG.debug("Created delegation token: {}", token); } return token; } OzoneDelegationTokenSecretManager(Builder b); @Override OzoneTokenIdentifier createIdentifier(); OzoneTokenIdentifier createIdentifier(Text owner, Text renewer,
      Text realUser); Token<OzoneTokenIdentifier> createToken(Text owner, Text renewer,
      Text realUser); long updateToken(Token<OzoneTokenIdentifier> token,
      OzoneTokenIdentifier ozoneTokenIdentifier, long tokenRenewInterval); @Override synchronized long renewToken(Token<OzoneTokenIdentifier> token,
      String renewer); void updateRenewToken(Token<OzoneTokenIdentifier> token,
      OzoneTokenIdentifier ozoneTokenIdentifier, long expiryTime); OzoneTokenIdentifier cancelToken(Token<OzoneTokenIdentifier> token,
      String canceller); void removeToken(OzoneTokenIdentifier ozoneTokenIdentifier); @Override byte[] retrievePassword(OzoneTokenIdentifier identifier); boolean verifySignature(OzoneTokenIdentifier identifier,
      byte[] password); @Override synchronized void start(CertificateClient certClient); void stopThreads(); @Override void stop(); long getTokenRemoverScanInterval();  }### Answer:
@Test public void testCreateToken() throws Exception { secretManager = createSecretManager(conf, tokenMaxLifetime, expiryTime, tokenRemoverScanInterval); secretManager.start(certificateClient); Token<OzoneTokenIdentifier> token = secretManager.createToken(TEST_USER, TEST_USER, TEST_USER); OzoneTokenIdentifier identifier = OzoneTokenIdentifier.readProtoBuf(token.getIdentifier()); Assert.assertTrue(identifier.getRealUser().equals(TEST_USER)); Assert.assertTrue(identifier.getRenewer().equals(TEST_USER)); Assert.assertTrue(identifier.getOwner().equals(TEST_USER)); validateHash(token.getPassword(), token.getIdentifier()); }