### Question:
EntityCapsManager extends Manager { protected static CapsVersionAndHash generateVerificationString(DiscoverInfoView discoverInfo) { return generateVerificationString(discoverInfo, null); } private  EntityCapsManager(XMPPConnection connection); static void setDefaultEntityNode(String entityNode); static String getNodeVersionByJid(Jid jid); static NodeVerHash getNodeVerHashByJid(Jid jid); static DiscoverInfo getDiscoverInfoByUser(Jid user); static DiscoverInfo getDiscoveryInfoByNodeVer(String nodeVer); static void setPersistentCache(EntityCapsPersistentCache cache); static void setMaxsCacheSizes(int maxJidToNodeVerSize, int maxCapsCacheSize); static void clearMemoryCache(); static synchronized EntityCapsManager getInstanceFor(XMPPConnection connection); synchronized void enableEntityCaps(); synchronized void disableEntityCaps(); boolean entityCapsEnabled(); static void removeUserCapsNode(Jid user); CapsVersionAndHash getCapsVersionAndHash(); String getLocalNodeVer(); boolean areEntityCapsSupported(Jid jid); boolean areEntityCapsSupportedByServer(); static boolean verifyDiscoverInfoVersion(String ver, String hash, DiscoverInfo info); static final String NAMESPACE; static final String ELEMENT; }### Answer:
@Test public void testComplexGenerationExample() throws XmppStringprepException { DiscoverInfo di = createComplexSamplePacket(); CapsVersionAndHash versionAndHash = EntityCapsManager.generateVerificationString(di, StringUtils.SHA1); assertEquals("q07IKJEyjvHSyhy }