### Question:
JwtBundle implements BundleSource<JwtBundle> { public void putJwtAuthority(@NonNull final String keyId, @NonNull final PublicKey jwtAuthority) { if (StringUtils.isBlank(keyId)) { throw new IllegalArgumentException("KeyId cannot be empty"); } jwtAuthorities.put(keyId, jwtAuthority); } JwtBundle(@NonNull final TrustDomain trustDomain);  JwtBundle(@NonNull final TrustDomain trustDomain, @NonNull final Map<String, PublicKey> jwtAuthorities); static JwtBundle load(@NonNull final TrustDomain trustDomain, @NonNull final Path bundlePath); static JwtBundle parse(
            @NonNull final TrustDomain trustDomain,
            @NonNull final byte[] bundleBytes); @Override JwtBundle getBundleForTrustDomain(final TrustDomain trustDomain); Map<String, PublicKey> getJwtAuthorities(); PublicKey findJwtAuthority(final String keyId); boolean hasJwtAuthority(final String keyId); void putJwtAuthority(@NonNull final String keyId, @NonNull final PublicKey jwtAuthority); void removeJwtAuthority(final String keyId);  }### Answer:
@Test void testAddJwtAuthority_emtpyKeyId_throwsIllegalArgumentException() { JwtBundle jwtBundle = new JwtBundle(TrustDomain.of("example.org")); try { jwtBundle.putJwtAuthority("", new DummyPublicKey()); } catch (IllegalArgumentException e) { assertEquals("KeyId cannot be empty", e.getMessage()); } }
@Test void testAddJwtAuthority_nullKeyId_throwsNullPointerException() { JwtBundle jwtBundle = new JwtBundle(TrustDomain.of("example.org")); try { jwtBundle.putJwtAuthority(null, new DummyPublicKey()); } catch (NullPointerException e) { assertEquals("keyId is marked non-null but is null", e.getMessage()); } }
@Test void testAddJwtAuthority_nullJwtAuthority_throwsNullPointerException() { JwtBundle jwtBundle = new JwtBundle(TrustDomain.of("example.org")); try { jwtBundle.putJwtAuthority("key1", null); } catch (NullPointerException e) { assertEquals("jwtAuthority is marked non-null but is null", e.getMessage()); } }