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