@Test
  public void createSecureClientDriverWithGivenPort() throws Exception {

    // Arrange
    SecureClientDriverFactory factory = new SecureClientDriverFactory();

    // Act
    ClientDriver driver =
        factory.createClientDriver(
            SocketUtil.getFreePort(), getKeystore(), "password", "certificate");

    // Assert
    assertThat(driver, instanceOf(ClientDriver.class));
    assertThat(driver, instanceOf(SecureClientDriver.class));
  }
  @Test
  public void createSecureClientDriverWithGivenPortUsingFluentApi() throws Exception {

    // Arrange
    SecureClientDriverFactory factory = new SecureClientDriverFactory();

    // Act
    ClientDriver driver =
        factory
            .keyStore(getKeystore())
            .password("password")
            .certAlias("certificate")
            .port(SocketUtil.getFreePort())
            .build();

    // Assert
    assertThat(driver, instanceOf(ClientDriver.class));
    assertThat(driver, instanceOf(SecureClientDriver.class));
  }