ConfigureDatabaseDao extends JdbcDaoSupport { protected boolean hasHostStartTypeColumn() { return !getJdbcTemplate().queryForList(sqlHasHostStartTypeColumn).isEmpty(); }    }
@Test public void hasHostStartTypeColumnTest() { Mockito.doReturn(createListOfMaps()).when(jdbcTemplate).queryForList(Mockito.eq(sqlHasHostStartTypeColumn)); boolean result = spy.hasHostStartTypeColumn(); verifyHasDbConfiguration(sqlHasHostStartTypeColumn, true, result); }
@Test public void hasHostStartTypeColumnTestIsEmpty() { Mockito.doReturn(new ArrayList<Map<String, Long>>()).when(jdbcTemplate).queryForList(Mockito.eq(sqlHasHostStartTypeColumn)); boolean result = spy.hasHostStartTypeColumn(); verifyHasDbConfiguration(sqlHasHostStartTypeColumn, false, result); }