### Question:
YumRepository extends RPMRepository<RPMRepoPackage> { public final String getGpgKey() { return gpgKey; } YumRepository(final String name,
                         final URL mirrorListUrl,
                         final URL baseUrl,
                         final boolean gpgCheck,
                         final String gpgKey);  YumRepository(final String name); protected  YumRepository(); final URL getMirrorListUrl(); final boolean isGpgCheck(); final String getGpgKey(); @Override final Set<RPMRepoPackage> listRemotePackages(); @Override final void measurePackage(final RPMRepoPackage repoPackage,
                                     final int maxDownloadAttempts); final void measurePackage(final RPMRepoPackage repoPackage);  }### Answer:
@Test public void testGetGpgKey() { YumRepository repository; try { repository = new YumRepository(REPO_NAME, null, baseUrl, GPG_CHECK, GPG_KEY); } catch (Exception e) { LOGGER.error("unexpected exception", e); throw new RuntimeException("unexpected exception", e); } Assert.assertEquals(repository.getGpgKey(), GPG_KEY); }