### Question:
JKSCertInfo implements CertInfo<Settings.Builder> { @PluginBuilderFactory public static Builder newBuilder() { return new Builder(); } protected  JKSCertInfo(String keystorePath, String keystorePassword, String truststorePath, String truststorePassword); @Override void applyTo(Settings.Builder clientConfigBuilder); @PluginBuilderFactory static Builder newBuilder();  }### Answer:
@Test public void builderThrowsIfKeystorePasswordIsSetToNull() { JKSCertInfo.Builder builder= JKSCertInfo.newBuilder() .withKeystorePassword(null); expectedException.expect(ConfigurationException.class); expectedException.expectMessage("keystorePassword"); builder.build(); }
@Test public void builderThrowsIfTruststorePasswordIsSetToNull() { JKSCertInfo.Builder builder= JKSCertInfo.newBuilder() .withTruststorePassword(null); expectedException.expect(ConfigurationException.class); expectedException.expectMessage("truststorePassword"); builder.build(); }