### Question:
MySQLService { public int getJDBCMajorVersion() throws SQLException { return this.connection.getMetaData().getJDBCMajorVersion(); } @Inject  MySQLService(Connection connection); int getJDBCMajorVersion();  }### Answer:
@Test public void testJDBCMajorVersion() throws Exception { assertThat(sut.getJDBCMajorVersion(), is(4)); }