### Question:
DatabaseAccess { public void dbSelect() throws Exception { Class.forName("org.postgresql.Driver"); String url = "jdbc:postgresql: Connection con = DriverManager.getConnection(url, "np", "npnpnp"); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery(getPlainSQL()); rs.close(); stmt.close(); con.close(); }  void dbSelect();  }### Answer:
@Test public void testSimple() throws Exception { DatabaseAccess da = new DatabaseAccess(); da.dbSelect(); }