@Override
  public synchronized String getUri() {
    return String.format(
        "jdbc:%s://%s:%d%s%s",
        getJDBCPrefix(),
        this.getHost(),
        this.getPort(getJDBCPort()),
        initialized ? ";DatabaseName=" + databaseName : "",
        ";encrypt=true;trustServerCertificate=true;");
  }
@Test
  public void testGetUriShouldReturnCorrectValue() {
    when(container.getHost()).thenReturn(HOST);
    when(container.getMappedPort(
            MSSQLResourceManager.DefaultMSSQLServerContainer.MS_SQL_SERVER_PORT))
        .thenReturn(MAPPED_PORT);
    assertThat(testManager.getUri())
        .matches(
            "jdbc:sqlserver://"
                + HOST
                + ":"
                + MAPPED_PORT
                + ";DatabaseName="
                + DATABASE_NAME
                + ";encrypt=true;trustServerCertificate=true;");
  }