PEKGenerationStep { protected PGPSecretKeyRing getEnvironmentKeyRing() { return securityManager.getKeyManager().getSecretKeyRing( environment.getEnvironmentId().getId() ); } PEKGenerationStep( final Topology topology, final LocalEnvironment environment, final PeerManager peerManager,
                              final SecurityManager securityManager, final TrackerOperation trackerOperation ); void execute();  }
@Test public void testGetEnvironmentKeyRing() throws Exception { doCallRealMethod().when( step ).getEnvironmentKeyRing(); step.getEnvironmentKeyRing(); verify( securityManager ).getKeyManager(); verify( keyManager ).getSecretKeyRing( TestHelper.ENV_ID ); }