@Test
public void testInit() {

    String driver = "org.mariadb.jdbc.Driver";
    String url =
            "jdbc:mariadb://localhost:3306/onap_sdk?connectTimeout=30000&socketTimeout=60000&log="
            + "true&sessionVariables=max_statement_time=30";
    String user = "policy_user";
    String password = "policy_user";
    PAPRestConfig config = new PAPRestConfig();
    config.init();
    assertEquals(PAPRestConfig.getDbDriver(), driver);
    assertEquals(PAPRestConfig.getDbUrl(), url);
    assertEquals(PAPRestConfig.getDbUserName(), user);
    assertEquals(PAPRestConfig.getDbPassword(), password);
    // Test hibernate
    BasicDataSource source = (BasicDataSource) config.getDataSource();
    assertEquals(source.getDriverClassName(), driver);
    assertEquals(source.getUrl(), url);
    assertEquals(source.getUsername(), user);
    assertEquals(source.getPassword(), password);
    SessionFactory factory = config.getSessionFactory(source);
    assertEquals(factory.isClosed(), false);
    HibernateTransactionManager manager = config.getTransactionManager(factory);
    assertEquals(manager.getSessionFactory(), factory);
}