@Test()
  public void testGetLocalDatabaseUrlThrowException() {
    Properties ambariProperties = new Properties();
    Configuration conf = new Configuration(ambariProperties);
    exception.expect(RuntimeException.class);
    exception.expectMessage("Server DB Name is not configured!");
    conf.getLocalDatabaseUrl();
  }
ambari.properties contains "security.server.two_way_ssl=false" option
@throws Exception
ambari-server/src/test/java/org/apache/ambari/server/configuration/ConfigurationTest.java