@Test
void driverProperties() {

    Properties properties = database.driverProperties("jdbc:mysql://localhost/demo", null, null);
    assertThat(properties)
            .doesNotContainKeys("user", "password")
            .containsEntry("useSSL", "false")
            .containsEntry("characterEncoding", "utf-8");
    properties = database.driverProperties("jdbc:mysql://localhost/demo?useSSL=true&characterEncoding=latin1", "user", "password");
    assertThat(properties).doesNotContainKeys("useSSL", "characterEncoding");
    properties = database.driverProperties("jdbc:mysql://localhost/demo?useSSL=true", null, null);
    assertThat(properties)
            .doesNotContainKeys("useSSL")
            .containsEntry("characterEncoding", "utf-8");
}