### Question:
GenericJDBCPersistenceProvider implements PersistenceProvider { @Override public Properties getProperties(String name) { Properties properties = new Properties(this.javaxProperties); String url = properties.getProperty(JAVAX_PERSISTENCE_URL); url = url.replace("{databasename}", name); properties.setProperty(JAVAX_PERSISTENCE_URL, url); return properties; }  @Override Properties getProperties(String name);  }### Answer:
@Test void testURLTransform() { this.testProperties.setProperty("javax.persistence.jdbc.url", "jdbc:cutom: Properties properties = this.provider.getProperties(TEST_DATABASENAME); assertThat(properties.getProperty("javax.persistence.jdbc.url"), is("jdbc:cutom: }
@Test void testNotTransformOtherValues() { this.testProperties.setProperty("custom", "some{databasename}"); Properties properties = this.provider.getProperties(TEST_DATABASENAME); assertThat(properties.getProperty("custom"), is("some{databasename}")); }