@Test public void fail_to_get_certificate_when_null() { expectedException.expect(IllegalArgumentException.class); expectedException.expectMessage("Certificate is missing"); underTest.getCertificate(); }
String getCertificate() { return configuration.get(CERTIFICATE).orElseThrow(() -> new IllegalArgumentException("Certificate is missing")); }
SamlSettings { String getCertificate() { return configuration.get(CERTIFICATE).orElseThrow(() -> new IllegalArgumentException("Certificate is missing")); } }
SamlSettings { String getCertificate() { return configuration.get(CERTIFICATE).orElseThrow(() -> new IllegalArgumentException("Certificate is missing")); } SamlSettings(Configuration configuration); }
SamlSettings { String getCertificate() { return configuration.get(CERTIFICATE).orElseThrow(() -> new IllegalArgumentException("Certificate is missing")); } SamlSettings(Configuration configuration);  }
SamlSettings { String getCertificate() { return configuration.get(CERTIFICATE).orElseThrow(() -> new IllegalArgumentException("Certificate is missing")); } SamlSettings(Configuration configuration);   }