### Question:
DbParamsRead { public static Properties getDbParams() throws FileNotFoundException, IOException { Properties props = new Properties(); props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("db.properties")); return props; }  static Properties getDbParams();  }### Answer:
@Test public void testGetDbParams() throws FileNotFoundException, IOException { Properties props = DbParamsRead.getDbParams(); assertThat(props.getProperty("db.driver"), is("com.mysql.jdbc.Driver")); assertThat(props.getProperty("db.user"), is("pp_fenxi")); assertThat(props.getProperty("db.password"), is("q#tmuYzC@sqB6!ok@sHd")); }