@Test
public void builderThrowsIfTruststorePasswordIsSetToNull() {

    // given
    JKSCertInfo.Builder builder= JKSCertInfo.newBuilder()
            .withTruststorePassword(null);
    expectedException.expect(ConfigurationException.class);
    expectedException.expectMessage("truststorePassword");
    // when
    builder.build();
}