AwsPrivateKeyStore implements PrivateKeyStore { AWSKMS getKMS() { return kms; } AwsPrivateKeyStore();  AwsPrivateKeyStore(final AmazonS3 s3, final AWSKMS kms); @Override PrivateKey getPrivateKey(String service, String serverHostName,
            StringBuilder privateKeyId); @Override String getApplicationSecret(final String appName, final String keyName);  }
@Test public void testGetKMS() { AWSKMS kms = mock(AWSKMS.class); AmazonS3 s3 = mock(AmazonS3.class); AwsPrivateKeyStore privateKeyStore = new AwsPrivateKeyStore(s3, kms); assertEquals(privateKeyStore.getKMS(), kms); }