### Question:
JettyConfiguration { public DataSourceInfo getDatasourceInfo(String env) { return envs.get(env); } protected  JettyConfiguration(String path); static JettyConfiguration load(String path); static JettyConfiguration get(); DataSourceInfo getDatasourceInfo(String env); DataSourceInfo getDatasourceInfo();  }### Answer:
@Test public void testInitDatasource() throws IOException { DataSourceInfo dsTest = config.getDatasourceInfo("test"); DataSourceInfo dsInitForTest = dsTest.getInitDatasource(); assertEquals("jdbc/_yawp_init", dsInitForTest.getName()); assertEquals("org.postgresql.Driver", dsInitForTest.getDriverClassName()); assertEquals("jdbc:postgresql: DataSourceInfo dsDevelopment = config.getDatasourceInfo("development"); DataSourceInfo dsInitForDevelopment = dsDevelopment.getInitDatasource(); assertEquals("jdbc/_yawp_init", dsInitForDevelopment.getName()); assertEquals("org.postgresql.Driver", dsInitForDevelopment.getDriverClassName()); assertEquals("jdbc:postgresql: }