PEKGenerationStep { protected PGPPublicKeyRing getLocalPeerPek() { return securityManager.getKeyManager().getPublicKeyRing( peerManager.getLocalPeer().getId() + "_" + environment.getEnvironmentId().getId() ); } PEKGenerationStep( final Topology topology, final LocalEnvironment environment, final PeerManager peerManager,
                              final SecurityManager securityManager, final TrackerOperation trackerOperation ); void execute();  }
@Test public void testGetLocalPeerPek() throws Exception { doCallRealMethod().when( step ).getLocalPeerPek(); step.getLocalPeerPek(); verify( keyManager ).getPublicKeyRing( anyString() ); }