### Question:
JwkFactory { public static RSAKey fromKeyStore(String alias, InputStream keyStoreFile, String password) { RSAKey keyFromKeyStore = (RSAKey) fromKeyStore(keyStoreFile, password).getKeyByKeyId(alias); return new RSAKey.Builder(keyFromKeyStore) .keyID(USE_CERTIFICATE_SHA1_THUMBPRINT ? getX509CertSHA1Thumbprint(keyFromKeyStore) : keyFromKeyStore.getKeyID()) .build(); }  static RSAKey fromJsonFile(String filePath); static RSAKey fromJson(String jsonJwk); static RSAKey fromKeyStore(String alias, InputStream keyStoreFile, String password);  }### Answer:
@Test void getKeyFromKeystore() { RSAKey rsaKey = JwkFactory.fromKeyStore( ALIAS, JwkFactoryTest.class.getResourceAsStream(KEY_STORE_FILE), "Test1234" ); assertThat(rsaKey.getKeyID()).isEqualTo(certificateThumbprintSHA1()); assertThat(rsaKey.isPrivate()).isTrue(); }