JwtConfiguration { public Optional<String> getJwtPublicKeyPem() { return jwtPublicKeyPem; } JwtConfiguration(Optional<String> jwtPublicKeyPem); Optional<String> getJwtPublicKeyPem();  }
@Test public void getJwtPublicKeyPemShouldReturnEmptyWhenEmptyPublicKey() throws Exception { JwtConfiguration jwtConfiguration = new JwtConfiguration(Optional.empty()); assertThat(jwtConfiguration.getJwtPublicKeyPem()).isNotPresent(); }
@Test public void getJwtPublicKeyPemShouldReturnWhenValidPublicKey() throws Exception { JwtConfiguration jwtConfiguration = new JwtConfiguration(Optional.of(VALID_PUBLIC_KEY)); assertThat(jwtConfiguration.getJwtPublicKeyPem()).isPresent(); }