### Question:
JDBCInputFormat extends GenericInputFormat implements NonParallelInput { @Override public boolean reachedEnd() { try { if (resultSet.isLast()) { resultSet.close(); statement.close(); dbConn.close(); return true; } else { return false; } } catch (SQLException e) { throw new IllegalArgumentException("Couldn't evaluate reachedEnd():\t" + e.getMessage()); } catch (NullPointerException e) { throw new IllegalArgumentException("Couldn't access resultSet:\t" + e.getMessage()); } } JDBCInputFormat();  JDBCInputFormat(String driverName, String dbURL, String username, String password, String query);  JDBCInputFormat(String driverName, String dbURL, String query);  JDBCInputFormat(Configuration parameters, String query); @Override void configure(Configuration parameters); @Override boolean reachedEnd(); @Override Record nextRecord(Record record); final String DRIVER_KEY; final String USERNAME_KEY; final String PASSWORD_KEY; final String URL_KEY; final String QUERY_KEY; }### Answer:
@Test(expected = IllegalArgumentException.class) public void testNotConfiguredFormatEnd() { jdbcInputFormat = new JDBCInputFormat("org.apache.derby.jdbc.EmbeddedDriver", "jdbc:derby:memory:ebookshop", "select * from books"); jdbcInputFormat.reachedEnd(); }