@Test
public void builderThrowsIfKeystorePasswordIsSetToNull() {

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